Skip to content

Commit 13b6124

Browse files
committed
fix tests
1 parent 5b400c1 commit 13b6124

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/EasyMock.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace EasyMock;
44

5-
use PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount as AnyInvokedCount;
6-
use PHPUnit_Framework_MockObject_Matcher_Invocation as InvocationMatcher;
7-
use PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce as InvokedAtLeastOnce;
8-
use PHPUnit_Framework_MockObject_MockObject as MockObject;
5+
use PHPUnit\Framework\MockObject\Matcher\AnyInvokedCount;
6+
use PHPUnit\Framework\MockObject\Matcher\Invocation as InvocationMatcher;
7+
use PHPUnit\Framework\MockObject\Matcher\InvokedAtLeastOnce;
8+
use PHPUnit\Framework\MockObject\MockObject;
99

1010
/**
1111
* Generates mock objects.
@@ -23,7 +23,7 @@ trait EasyMock
2323
* @param string $classname The class to mock. Can also be an existing mock to mock new methods.
2424
* @param array $methods Array of values to return, indexed by the method name.
2525
*
26-
* @return \PHPUnit_Framework_MockObject_MockObject
26+
* @return \PHPUnit\Framework\MockObject\MockObject
2727
*/
2828
protected function easyMock($classname, array $methods = array())
2929
{
@@ -51,7 +51,7 @@ protected function easyMock($classname, array $methods = array())
5151
* @param string $classname The class to mock. Can also be an existing mock to mock new methods.
5252
* @param array $methods Array of values to return, indexed by the method name.
5353
*
54-
* @return \PHPUnit_Framework_MockObject_MockObject
54+
* @return \PHPUnit\Framework\MockObject\MockObject
5555
*/
5656
protected function easySpy($classname, array $methods = array())
5757
{

tests/EasyMockTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function should_mock_objects()
2525
/** @var ClassFixture $mock */
2626
$mock = $this->easyMock('EasyMock\Test\Fixture\ClassFixture');
2727

28-
$this->assertInstanceOf('PHPUnit_Framework_MockObject_MockObject', $mock);
28+
$this->assertInstanceOf('PHPUnit\Framework\MockObject\MockObject', $mock);
2929
$this->assertNull($mock->foo());
3030
}
3131

@@ -47,7 +47,7 @@ public function should_mock_interfaces()
4747
/** @var InterfaceFixture $mock */
4848
$mock = $this->easyMock('EasyMock\Test\Fixture\InterfaceFixture');
4949

50-
$this->assertInstanceOf('PHPUnit_Framework_MockObject_MockObject', $mock);
50+
$this->assertInstanceOf('PHPUnit\Framework\MockObject\MockObject', $mock);
5151
$this->assertNull($mock->foo());
5252
}
5353

0 commit comments

Comments
 (0)