@@ -215,8 +215,8 @@ public function testJsonWithSerializerContextOverride()
215215 public function testFile ()
216216 {
217217 /* @var ContainerInterface $container */
218- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
219- $ kernel = $ this ->getMock ('Symfony\Component\HttpKernel\HttpKernelInterface ' );
218+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
219+ $ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\HttpKernelInterface ' )-> getMock ( );
220220 $ container ->set ('kernel ' , $ kernel );
221221
222222 $ controller = new TestController ();
@@ -235,7 +235,7 @@ public function testFile()
235235
236236 public function testFileAsInline ()
237237 {
238- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
238+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
239239 $ controller = new TestController ();
240240 $ controller ->setContainer ($ container );
241241
@@ -253,7 +253,7 @@ public function testFileAsInline()
253253
254254 public function testFileWithOwnFileName ()
255255 {
256- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
256+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
257257 $ controller = new TestController ();
258258 $ controller ->setContainer ($ container );
259259
@@ -272,7 +272,7 @@ public function testFileWithOwnFileName()
272272
273273 public function testFileWithOwnFileNameAsInline ()
274274 {
275- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
275+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
276276 $ controller = new TestController ();
277277 $ controller ->setContainer ($ container );
278278
0 commit comments