@@ -24,7 +24,7 @@ class ProcessFailedExceptionTest extends TestCase
24
24
*/
25
25
public function testProcessFailedExceptionThrowsException ()
26
26
{
27
- $ process = $ this ->getMockBuilder ('Symfony\Component\Process\Process ' )->setMethods (array ( 'isSuccessful ' )) ->setConstructorArgs (array ( array ( 'php ' )) )->getMock ();
27
+ $ process = $ this ->getMockBuilder ('Symfony\Component\Process\Process ' )->setMethods ([ 'isSuccessful ' ]) ->setConstructorArgs ([[ 'php ' ]] )->getMock ();
28
28
$ process ->expects ($ this ->once ())
29
29
->method ('isSuccessful ' )
30
30
->will ($ this ->returnValue (true ));
@@ -52,7 +52,7 @@ public function testProcessFailedExceptionPopulatesInformationFromProcessOutput(
52
52
$ errorOutput = 'FATAL: Unexpected error ' ;
53
53
$ workingDirectory = getcwd ();
54
54
55
- $ process = $ this ->getMockBuilder ('Symfony\Component\Process\Process ' )->setMethods (array ( 'isSuccessful ' , 'getOutput ' , 'getErrorOutput ' , 'getExitCode ' , 'getExitCodeText ' , 'isOutputDisabled ' , 'getWorkingDirectory ' )) ->setConstructorArgs (array ( array ( $ cmd)) )->getMock ();
55
+ $ process = $ this ->getMockBuilder ('Symfony\Component\Process\Process ' )->setMethods ([ 'isSuccessful ' , 'getOutput ' , 'getErrorOutput ' , 'getExitCode ' , 'getExitCodeText ' , 'isOutputDisabled ' , 'getWorkingDirectory ' ]) ->setConstructorArgs ([[ $ cmd]] )->getMock ();
56
56
$ process ->expects ($ this ->once ())
57
57
->method ('isSuccessful ' )
58
58
->will ($ this ->returnValue (false ));
@@ -100,7 +100,7 @@ public function testDisabledOutputInFailedExceptionDoesNotPopulateOutput()
100
100
$ exitText = 'General error ' ;
101
101
$ workingDirectory = getcwd ();
102
102
103
- $ process = $ this ->getMockBuilder ('Symfony\Component\Process\Process ' )->setMethods (array ( 'isSuccessful ' , 'isOutputDisabled ' , 'getExitCode ' , 'getExitCodeText ' , 'getOutput ' , 'getErrorOutput ' , 'getWorkingDirectory ' )) ->setConstructorArgs (array ( array ( $ cmd)) )->getMock ();
103
+ $ process = $ this ->getMockBuilder ('Symfony\Component\Process\Process ' )->setMethods ([ 'isSuccessful ' , 'isOutputDisabled ' , 'getExitCode ' , 'getExitCodeText ' , 'getOutput ' , 'getErrorOutput ' , 'getWorkingDirectory ' ]) ->setConstructorArgs ([[ $ cmd]] )->getMock ();
104
104
$ process ->expects ($ this ->once ())
105
105
->method ('isSuccessful ' )
106
106
->will ($ this ->returnValue (false ));
0 commit comments