We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e4b4a commit 1be266fCopy full SHA for 1be266f
src/Symfony/Component/Process/Tests/AbstractProcessTest.php
@@ -724,12 +724,12 @@ public function testCheckTimeoutOnStartedProcess()
724
725
public function testStartAfterATimeout()
726
{
727
- $process = $this->getProcess('php -r "$n = 1000; while ($n--) {echo \'\'; usleep(1000); }"');
+ $process = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 1000; while ($n--) {echo \'\'; usleep(1000); }')));
728
$process->setTimeout(0.1);
729
try {
730
$process->run();
731
- $this->fail('An exception should have been raised.');
732
- } catch (\Exception $e) {
+ $this->fail('A RuntimeException should have been raised.');
+ } catch (RuntimeException $e) {
733
}
734
$process->start();
735
usleep(10000);
0 commit comments