diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 7f490785e0783..af6f8f9787522 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -331,10 +331,6 @@ public function start(callable $callback = null/*, array $env = array()*/) } if (!is_dir($this->cwd)) { - if ('\\' === DIRECTORY_SEPARATOR) { - throw new RuntimeException('The provided cwd does not exist.'); - } - @trigger_error('The provided cwd does not exist. Command is currently ran against getcwd(). This behavior is deprecated since version 3.4 and will be removed in 4.0.', E_USER_DEPRECATED); } diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php index 6af470b58acd9..e741a8308f370 100644 --- a/src/Symfony/Component/Process/Tests/ProcessTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessTest.php @@ -54,10 +54,6 @@ protected function tearDown() */ public function testInvalidCwd() { - if ('\\' === DIRECTORY_SEPARATOR) { - $this->markTestSkipped('Windows handles this automatically.'); - } - // Check that it works fine if the CWD exists $cmd = new Process('echo test', __DIR__); $cmd->run(); @@ -66,28 +62,6 @@ public function testInvalidCwd() $cmd->run(); } - /** - * @expectedException \Symfony\Component\Process\Exception\RuntimeException - * @expectedExceptionMessage The provided cwd does not exist. - */ - public function testInvalidCwdOnWindows() - { - if ('\\' !== DIRECTORY_SEPARATOR) { - $this->markTestSkipped('Unix handles this automatically.'); - } - - try { - // Check that it works fine if the CWD exists - $cmd = new Process('echo test', __DIR__); - $cmd->run(); - } catch (\Exception $e) { - $this->fail($e); - } - - $cmd = new Process('echo test', __DIR__.'/notfound/'); - $cmd->run(); - } - public function testThatProcessDoesNotThrowWarningDuringRun() { if ('\\' === DIRECTORY_SEPARATOR) {