@@ -454,7 +454,7 @@ public function testFindAlternativeNamespace()
454
454
455
455
public function testFindNamespaceDoesNotFailOnDeepSimilarNamespaces ()
456
456
{
457
- $ application = $ this ->getMock ('Symfony\Component\Console\Application ' , array ('getNamespaces ' ));
457
+ $ application = $ this ->getMockBuilder ('Symfony\Component\Console\Application ' )-> setMethods ( array ('getNamespaces ' ))-> getMock ( );
458
458
$ application ->expects ($ this ->once ())
459
459
->method ('getNamespaces ' )
460
460
->will ($ this ->returnValue (array ('foo:sublong ' , 'bar:sub ' )));
@@ -701,7 +701,7 @@ public function testRunReturnsIntegerExitCode()
701
701
{
702
702
$ exception = new \Exception ('' , 4 );
703
703
704
- $ application = $ this ->getMock ('Symfony\Component\Console\Application ' , array ('doRun ' ));
704
+ $ application = $ this ->getMockBuilder ('Symfony\Component\Console\Application ' )-> setMethods ( array ('doRun ' ))-> getMock ( );
705
705
$ application ->setAutoExit (false );
706
706
$ application ->expects ($ this ->once ())
707
707
->method ('doRun ' )
@@ -716,7 +716,7 @@ public function testRunReturnsExitCodeOneForExceptionCodeZero()
716
716
{
717
717
$ exception = new \Exception ('' , 0 );
718
718
719
- $ application = $ this ->getMock ('Symfony\Component\Console\Application ' , array ('doRun ' ));
719
+ $ application = $ this ->getMockBuilder ('Symfony\Component\Console\Application ' )-> setMethods ( array ('doRun ' ))-> getMock ( );
720
720
$ application ->setAutoExit (false );
721
721
$ application ->expects ($ this ->once ())
722
722
->method ('doRun ' )
0 commit comments