Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Jan 14, 2019
1 parent 5b400c1 commit 13b6124
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/EasyMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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())
{
Expand Down Expand Up @@ -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())
{
Expand Down
4 changes: 2 additions & 2 deletions tests/EasyMockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand All @@ -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());
}

Expand Down

0 comments on commit 13b6124

Please sign in to comment.