File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Process/Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -724,12 +724,12 @@ public function testCheckTimeoutOnStartedProcess()
724
724
725
725
public function testStartAfterATimeout ()
726
726
{
727
- $ process = $ this ->getProcess ('php -r " $n = 1000; while ($n--) {echo \'\'; usleep(1000); }" ' );
727
7440
+ $ process = $ this ->getProcess (sprintf ( 'php -r %s ' , escapeshellarg ( ' $n = 1000; while ($n--) {echo \'\'; usleep(1000); } ' )) );
728
728
$ process ->setTimeout (0.1 );
729
729
try {
730
730
$ process ->run ();
731
- $ this ->fail ('An exception should have been raised. ' );
732
- } catch (\ Exception $ e ) {
731
+ $ this ->fail ('A RuntimeException should have been raised. ' );
732
+ } catch (RuntimeException $ e ) {
733
733
}
734
734
$ process ->start ();
735
735
usleep (10000 );
You can’t perform that action at this time.
0 commit comments