@@ -215,8 +215,8 @@ public function testJsonWithSerializerContextOverride()
215
215
public function testFile ()
216
216
{
217
217
/* @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 ( );
220
220
$ container ->set ('kernel ' , $ kernel );
221
221
222
222
$ controller = new TestController ();
@@ -235,7 +235,7 @@ public function testFile()
235
235
236
236
public function testFileAsInline ()
237
237
{
238
- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
238
+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
239
239
$ controller = new TestController ();
240
240
$ controller ->setContainer ($ container );
241
241
@@ -253,7 +253,7 @@ public function testFileAsInline()
253
253
254
254
public function testFileWithOwnFileName ()
255
255
{
256
- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
256
+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
257
257
$ controller = new TestController ();
258
258
$ controller ->setContainer ($ container );
259
259
@@ -272,7 +272,7 @@ public function testFileWithOwnFileName()
272
272
273
273
public function testFileWithOwnFileNameAsInline ()
274
274
{
275
- $ container = $ this ->getMock ('Symfony\Component\DependencyInjection\ContainerInterface ' );
275
+ $ container = $ this ->getMockBuilder ('Symfony\Component\DependencyInjection\ContainerInterface ' )-> getMock ( );
276
276
$ controller = new TestController ();
277
277
$ controller ->setContainer ($ container );
278
278
0 commit comments