소스 검색

[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();