Преглед изворни кода

merged branch beberlei/ProcessPipesWindows (PR #2483)

Commits
-------

fee217f Update tests/Symfony/Tests/Component/Process/ProcessTest.php
d58e682 GH-2287 - Skip Process:processTest on Windows due to PHP bug #60120

Discussion
----------

[Process] Test with pipes hang on windows

Rebased onto 2.0
Fabien Potencier пре 13 година
родитељ
комит
6c538dfb22
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      tests/Symfony/Tests/Component/Process/ProcessTest.php

+ 4 - 0
tests/Symfony/Tests/Component/Process/ProcessTest.php

@@ -55,6 +55,10 @@ class ProcessTest extends \PHPUnit_Framework_TestCase
      */
     public function testProcessPipes($expected, $code)
     {
+        if (strpos(PHP_OS, "WIN") === 0 && version_compare(phpversion(), "5.3.9", "<")) {
+            $this->markTestSkipped('Test hangs on Windows & PHP due to https://bugs.php.net/bug.php?id=60120 fixed in http://svn.php.net/viewvc?view=revision&revision=318366');
+        }
+
         $p = new Process(sprintf('php -r %s', escapeshellarg($code)));
         $p->setStdin($expected);
         $p->run();