@@ -64,7 +64,7 @@ public function testDebugDefaultDirectory()
6464
6565 public function testDebugCustomDirectory ()
6666 {
67- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\KernelInterface ' );
67+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )-> getMock ( );
6868 $ kernel ->expects ($ this ->once ())
6969 ->method ('getBundle ' )
7070 ->with ($ this ->equalTo ($ this ->translationDir ))
@@ -82,7 +82,7 @@ public function testDebugCustomDirectory()
8282 */
8383 public function testDebugInvalidDirectory ()
8484 {
85- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\KernelInterface ' );
85+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )-> getMock ( );
8686 $ kernel ->expects ($ this ->once ())
8787 ->method ('getBundle ' )
8888 ->with ($ this ->equalTo ('dir ' ))
@@ -130,7 +130,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
130130 ->method ('getFallbackLocales ' )
131131 ->will ($ this ->returnValue (array ('en ' )));
132132
133- $ extractor = $ this ->getMock ('Symfony\Component\Translation\Extractor\ExtractorInterface ' );
133+ $ extractor = $ this ->getMockBuilder ('Symfony\Component\Translation\Extractor\ExtractorInterface ' )-> getMock ( );
134134 $ extractor
135135 ->expects ($ this ->any ())
136136 ->method ('extract ' )
@@ -140,7 +140,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
140140 })
141141 );
142142
143- $ loader = $ this ->getMock ('Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader ' );
143+ $ loader = $ this ->getMockBuilder ('Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader ' )-> getMock ( );
144144 $ loader
145145 ->expects ($ this ->any ())
146146 ->method ('loadMessages ' )
@@ -151,7 +151,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
151151 );
152152
153153 if (null === $ kernel ) {
154- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\KernelInterface ' );
154+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\KernelInterface ' )-> getMock ( );
155155 $ kernel
156156 ->expects ($ this ->any ())
157157 ->method ('getBundle ' )
@@ -166,7 +166,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
166166 ->method ('getRootDir ' )
167167 ->will ($ this ->returnValue ($ this ->translationDir ));
168168
169- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
169+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
170170 $ container
171171 ->expects ($ this ->any ())
172172 ->method ('get ' )
@@ -182,7 +182,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
182182
183183 private function getBundle ($ path )
184184 {
185- $ bundle = $ this ->getMock ('Symfony\Component\HttpKernel\Bundle\BundleInterface ' );
185+ $ bundle = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Bundle\BundleInterface ' )-> getMock ( );
186186 $ bundle
187187 ->expects ($ this ->any ())
188188 ->method ('getPath ' )
0 commit comments