22
33namespace 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 {
@@ -34,7 +34,7 @@ protected function easyMock($classname, array $methods = array())
3434 }
3535
3636 foreach ($ methods as $ method => $ return ) {
37- $ this ->mockMethod ($ mock , $ method , new AnyInvokedCount , $ return );
37+ $ this ->mockMethod ($ mock , $ method , new AnyInvokedCount () , $ return );
3838 }
3939
4040 return $ mock ;
@@ -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 {
0 commit comments