From 13b6124f30fa0120b70a20ece9216cf5e8f0cb24 Mon Sep 17 00:00:00 2001 From: "t.mueller" Date: Mon, 14 Jan 2019 14:42:23 +0100 Subject: [PATCH] fix tests --- src/EasyMock.php | 12 ++++++------ tests/EasyMockTest.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/EasyMock.php b/src/EasyMock.php index 5bc8de9..8c08c7e 100644 --- a/src/EasyMock.php +++ b/src/EasyMock.php @@ -2,10 +2,10 @@ namespace EasyMock; -use PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount as AnyInvokedCount; -use PHPUnit_Framework_MockObject_Matcher_Invocation as InvocationMatcher; -use PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce as InvokedAtLeastOnce; -use PHPUnit_Framework_MockObject_MockObject as MockObject; +use PHPUnit\Framework\MockObject\Matcher\AnyInvokedCount; +use PHPUnit\Framework\MockObject\Matcher\Invocation as InvocationMatcher; +use PHPUnit\Framework\MockObject\Matcher\InvokedAtLeastOnce; +use PHPUnit\Framework\MockObject\MockObject; /** * Generates mock objects. @@ -23,7 +23,7 @@ trait EasyMock * @param string $classname The class to mock. Can also be an existing mock to mock new methods. * @param array $methods Array of values to return, indexed by the method name. * - * @return \PHPUnit_Framework_MockObject_MockObject + * @return \PHPUnit\Framework\MockObject\MockObject */ protected function easyMock($classname, array $methods = array()) { @@ -51,7 +51,7 @@ protected function easyMock($classname, array $methods = array()) * @param string $classname The class to mock. Can also be an existing mock to mock new methods. * @param array $methods Array of values to return, indexed by the method name. * - * @return \PHPUnit_Framework_MockObject_MockObject + * @return \PHPUnit\Framework\MockObject\MockObject */ protected function easySpy($classname, array $methods = array()) { diff --git a/tests/EasyMockTest.php b/tests/EasyMockTest.php index 4566144..1771b92 100644 --- a/tests/EasyMockTest.php +++ b/tests/EasyMockTest.php @@ -25,7 +25,7 @@ public function should_mock_objects() /** @var ClassFixture $mock */ $mock = $this->easyMock('EasyMock\Test\Fixture\ClassFixture'); - $this->assertInstanceOf('PHPUnit_Framework_MockObject_MockObject', $mock); + $this->assertInstanceOf('PHPUnit\Framework\MockObject\MockObject', $mock); $this->assertNull($mock->foo()); } @@ -47,7 +47,7 @@ public function should_mock_interfaces() /** @var InterfaceFixture $mock */ $mock = $this->easyMock('EasyMock\Test\Fixture\InterfaceFixture'); - $this->assertInstanceOf('PHPUnit_Framework_MockObject_MockObject', $mock); + $this->assertInstanceOf('PHPUnit\Framework\MockObject\MockObject', $mock); $this->assertNull($mock->foo()); }