瀏覽代碼

[Process] fixed unit tests on PHP 5.4

Fabien Potencier 13 年之前
父節點
當前提交
ebc9979a57
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      tests/Symfony/Tests/Component/Process/PhpExecutableFinderTest.php

+ 8 - 0
tests/Symfony/Tests/Component/Process/PhpExecutableFinderTest.php

@@ -23,6 +23,10 @@ class PhpExecutableFinderTest extends \PHPUnit_Framework_TestCase
      */
     public function testFindWithPHP_PATH()
     {
+        if (defined('PHP_BINARY')) {
+            $this->markTestSkipped('The PHP binary is easily available as of PHP 5.4');
+        }
+
         $f = new PhpExecutableFinder();
 
         $current = $f->find();
@@ -41,6 +45,10 @@ class PhpExecutableFinderTest extends \PHPUnit_Framework_TestCase
      */
     public function testFindWithSuffix()
     {
+        if (defined('PHP_BINARY')) {
+            $this->markTestSkipped('The PHP binary is easily available as of PHP 5.4');
+        }
+
         putenv('PHP_PATH=');
         putenv('PHP_PEAR_PHP_BIN=');
         $f = new PhpExecutableFinder();