File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Process/Tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1570,7 +1570,7 @@ public function testFailingProcessWithMultipleCallsToProcGetStatus()
15701570 */
15711571 public function testLongRunningProcessWithMultipleCallsToProcGetStatus ()
15721572 {
1573- $ process = $ this ->getProcess ('php -r "sleep(1); echo \' done \' ;" ' );
1573+ $ process = $ this ->getProcess ('sleep 1 && echo "done" && php -r "exit(0) ;" ' );
15741574 $ process ->start (static function () use ($ process ) {
15751575 return $ process ->isRunning ();
15761576 });
@@ -1585,7 +1585,7 @@ public function testLongRunningProcessWithMultipleCallsToProcGetStatus()
15851585 */
15861586 public function testLongRunningProcessWithMultipleCallsToProcGetStatusError ()
15871587 {
1588- $ process = $ this ->getProcess ('php -r " sleep(1); echo \' failure \' ; exit(123);" ' );
1588+ $ process = $ this ->getProcess ('sleep 1 && echo " failure" && php -r " exit(123);" ' );
15891589 $ process ->start (static function () use ($ process ) {
15901590 return $ process ->isRunning ();
15911591 });
You can’t perform that action at this time.
0 commit comments