22
33namespace phpmock \phpunit ;
44
5- use \PHPUnit_Framework_MockObject_Builder_InvocationMocker as InvocationMocker ;
65use PHPUnit \Framework \TestCase ;
76use phpmock \integration \MockDelegateFunctionBuilder ;
7+ use PHPUnit \Framework \MockObject \Builder \InvocationMocker ;
8+ use PHPUnit \Framework \MockObject \Matcher \Invocation ;
9+ use PHPUnit \Framework \MockObject \MockObject ;
810
911/**
1012 * Tests MockObjectProxyTest.
@@ -25,13 +27,13 @@ class MockObjectProxyTest extends TestCase
2527 */
2628 public function testExpects ()
2729 {
28- $ matcher = $ this ->getMockBuilder (\PHPUnit_Framework_MockObject_Matcher_Invocation ::class)->getMock ();
30+ $ matcher = $ this ->getMockBuilder (Invocation ::class)->getMock ();
2931
3032 $ invocationMocker = $ this ->getMockBuilder (InvocationMocker::class)->disableOriginalConstructor ()->getMock ();
3133 $ invocationMocker ->expects ($ this ->once ())->method ("method " )
3234 ->with (MockDelegateFunctionBuilder::METHOD )->willReturn ($ invocationMocker );
3335
34- $ prophecy = $ this ->prophesize (\PHPUnit_Framework_MockObject_MockObject ::class);
36+ $ prophecy = $ this ->prophesize (MockObject ::class);
3537 $ prophecy ->expects ($ matcher )->willReturn ($ invocationMocker );
3638 $ mock = $ prophecy ->reveal ();
3739
@@ -53,7 +55,7 @@ public function testExpects()
5355 */
5456 public function testHasMatcher ()
5557 {
56- $ prophecy = $ this ->prophesize (\PHPUnit_Framework_MockObject_MockObject ::class);
58+ $ prophecy = $ this ->prophesize (MockObject ::class);
5759 $ prophecy ->__phpunit_hasMatchers ()->willReturn ("foo " );
5860 $ mock = $ prophecy ->reveal ();
5961
@@ -74,7 +76,7 @@ public function testHasMatcher()
7476 */
7577 public function testProxiedMethods ($ method , array $ arguments = [], $ expected = "foo " )
7678 {
77- $ prophecy = $ this ->prophesize (\PHPUnit_Framework_MockObject_MockObject ::class);
79+ $ prophecy = $ this ->prophesize (MockObject ::class);
7880 call_user_func_array ([$ prophecy , $ method ], $ arguments )->willReturn ($ expected );
7981 $ mock = $ prophecy ->reveal ();
8082
0 commit comments