@@ -18,7 +18,7 @@ public function handleShouldDelegateToCallable()
1818 $ response = $ kernel ->handle ($ request );
1919
2020 $ this ->assertSame ('ok ' , $ response ->getContent ());
21- $ this ->assertCount (1 , $ spy );
21+ $ this ->assertSame (1 , $ spy-> getCount () );
2222 $ this ->assertSame (
2323 [$ request , HttpKernelInterface::MASTER_REQUEST , true ],
2424 $ spy ->getCall (0 )
@@ -35,15 +35,15 @@ public function handleShouldDelegateAllArgs()
3535 $ response = $ kernel ->handle ($ request , HttpKernelInterface::SUB_REQUEST , false );
3636
3737 $ this ->assertSame ('ok ' , $ response ->getContent ());
38- $ this ->assertCount (1 , $ spy );
38+ $ this ->assertSame (1 , $ spy-> getCount () );
3939 $ this ->assertSame (
4040 [$ request , HttpKernelInterface::SUB_REQUEST , false ],
4141 $ spy ->getCall (0 )
4242 );
4343 }
4444}
4545
46- class SpyCallable implements \Countable
46+ class SpyCallable
4747{
4848 private $ returnValue ;
4949 private $ calls = [];
@@ -60,7 +60,7 @@ public function __invoke()
6060 return $ this ->returnValue ;
6161 }
6262
63- public function count ()
63+ public function getCount ()
6464 {
6565 return count ($ this ->calls );
6666 }
0 commit comments