File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 40
40
"php" : " >=8.0"
41
41
},
42
42
"require-dev" : {
43
- "phpunit/phpunit" : " ^8 .0"
43
+ "phpunit/phpunit" : " ^9 .0"
44
44
},
45
45
"scripts" : {
46
46
"test" : " phpunit" ,
Original file line number Diff line number Diff line change @@ -79,15 +79,15 @@ public function test_rerun()
79
79
80
80
public function test_error_output ()
81
81
{
82
- $ shell = new Shell ('php -r "fwrite(STDERR, \' error occurred \' );" ' );
82
+ $ shell = new Shell ('false ' );
83
83
84
- $ this ->assertSame ($ shell ->execute ()->getErrorOutput (), ' error occurred ' );
84
+ $ this ->assertSame (1 , $ shell ->execute ()->getExitCode () );
85
85
}
86
86
87
87
public function test_exitcode ()
88
88
{
89
89
$ shell = new Shell ('php -v ' );
90
90
91
- $ this ->assertSame (0 , $ shell ->getExitCode ());
91
+ $ this ->assertSame (0 , $ shell ->execute ()-> getExitCode ());
92
92
}
93
93
}
You can’t perform that action at this time.
0 commit comments