composer update
This commit is contained in:
22
vendor/symfony/process/Tests/ProcessTest.php
vendored
22
vendor/symfony/process/Tests/ProcessTest.php
vendored
@@ -49,7 +49,8 @@ class ProcessTest extends TestCase
|
||||
|
||||
/**
|
||||
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
|
||||
* @expectedExceptionMessage The provided cwd does not exist.
|
||||
* @expectedExceptionMessage The provided cwd "
|
||||
* @expectedExceptionMessage "does not exist.
|
||||
*/
|
||||
public function testInvalidCwd()
|
||||
{
|
||||
@@ -1510,6 +1511,25 @@ EOTXT;
|
||||
$this->assertSame($env, $p->getEnv());
|
||||
}
|
||||
|
||||
public function testWaitStoppedDeadProcess()
|
||||
{
|
||||
$process = $this->getProcess(self::$phpBin.' '.__DIR__.'/ErrorProcessInitiator.php -e '.self::$phpBin);
|
||||
$process->start();
|
||||
$process->setTimeout(2);
|
||||
$process->wait();
|
||||
$this->assertFalse($process->isRunning());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $commandline
|
||||
* @param string|null $cwd
|
||||
* @param array|null $env
|
||||
* @param string|null $input
|
||||
* @param int $timeout
|
||||
* @param array $options
|
||||
*
|
||||
* @return Process
|
||||
*/
|
||||
private function getProcess($commandline, string $cwd = null, array $env = null, $input = null, ?int $timeout = 60): Process
|
||||
{
|
||||
if (\is_string($commandline)) {
|
||||
|
||||
Reference in New Issue
Block a user