@@ -24,11 +24,8 @@ public function testThatCacheWarmersAreProcessedInPriorityOrder()
2424 'my_cache_warmer_service3 ' => array (),
2525 );
2626
27- $ definition = $ this ->getMock ('Symfony\Component\DependencyInjection\Definition ' );
28- $ container = $ this ->getMock (
29- 'Symfony\Component\DependencyInjection\ContainerBuilder ' ,
30- array ('findTaggedServiceIds ' , 'getDefinition ' , 'hasDefinition ' )
31- );
27+ $ definition = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\Definition ' )->getMock ();
28+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerBuilder ' )->setMethods (array ('findTaggedServiceIds ' , 'getDefinition ' , 'hasDefinition ' ))->getMock ();
3229
3330 $ container ->expects ($ this ->atLeastOnce ())
3431 ->method ('findTaggedServiceIds ' )
@@ -56,11 +53,8 @@ public function testThatCacheWarmersAreProcessedInPriorityOrder()
5653
5754 public function testThatCompilerPassIsIgnoredIfThereIsNoCacheWarmerDefinition ()
5855 {
59- $ definition = $ this ->getMock ('Symfony\Component\DependencyInjection\Definition ' );
60- $ container = $ this ->getMock (
61- 'Symfony\Component\DependencyInjection\ContainerBuilder ' ,
62- array ('hasDefinition ' , 'findTaggedServiceIds ' , 'getDefinition ' )
63- );
56+ $ definition = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\Definition ' )->getMock ();
57+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerBuilder ' )->setMethods (array ('hasDefinition ' , 'findTaggedServiceIds ' , 'getDefinition ' ))->getMock ();
6458
6559 $ container ->expects ($ this ->never ())->method ('findTaggedServiceIds ' );
6660 $ container ->expects ($ this ->never ())->method ('getDefinition ' );
@@ -76,11 +70,8 @@ public function testThatCompilerPassIsIgnoredIfThereIsNoCacheWarmerDefinition()
7670
7771 public function testThatCacheWarmersMightBeNotDefined ()
7872 {
79- $ definition = $ this ->getMock ('Symfony\Component\DependencyInjection\Definition ' );
80- $ container = $ this ->getMock (
81- 'Symfony\Component\DependencyInjection\ContainerBuilder ' ,
82- array ('hasDefinition ' , 'findTaggedServiceIds ' , 'getDefinition ' )
83- );
73+ $ definition = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\Definition ' )->getMock ();
74+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerBuilder ' )->setMethods (array ('hasDefinition ' , 'findTaggedServiceIds ' , 'getDefinition ' ))->getMock ();
8475
8576 $ container ->expects ($ this ->atLeastOnce ())
8677 ->method ('findTaggedServiceIds ' )
0 commit comments