diff --git a/lib/Tests/Fhp/ConnectionTest.php b/lib/Tests/Fhp/ConnectionTest.php index 3eb5391..a93d18a 100644 --- a/lib/Tests/Fhp/ConnectionTest.php +++ b/lib/Tests/Fhp/ConnectionTest.php @@ -16,12 +16,12 @@ class ConnectionTest extends \PHPUnit_Framework_TestCase public function setUp() { - $this->adapter = $this->getMockBuilder(Curl::class) + $this->adapter = $this->getMockBuilder('\Fhp\Adapter\Curl') ->disableOriginalConstructor() ->setMethods(['send']) ->getMock(); - $this->message = $this->getMockBuilder(Message::class) + $this->message = $this->getMockBuilder('\Fhp\Message\Message') ->disableOriginalConstructor() ->getMock(); } diff --git a/lib/Tests/Fhp/Message/MessageTest.php b/lib/Tests/Fhp/Message/MessageTest.php index f956239..838bb5c 100644 --- a/lib/Tests/Fhp/Message/MessageTest.php +++ b/lib/Tests/Fhp/Message/MessageTest.php @@ -87,7 +87,7 @@ public function test_get_encrypted_segments() $this->assertInternalType('array', $segments); foreach ($segments as $segment) { - $this->assertInstanceOf(AbstractSegment::class, $segment); + $this->assertInstanceOf('\Fhp\Segment\AbstractSegment', $segment); } } } \ No newline at end of file