Quellcode durchsuchen

[Process] Fixed namespace typo and windows test

Pascal Borreli vor 14 Jahren
Ursprung
Commit
7f089c0b05

+ 0 - 2
src/Symfony/Component/Process/PhpExecutableFinder.php

@@ -11,8 +11,6 @@
 
 namespace Symfony\Component\Process;
 
-use Symfony\Component\Process\Exception\RuntimeException;
-
 /**
  * An executable finder specifically designed for the PHP executable.
  *

+ 3 - 1
tests/Symfony/Tests/Component/Process/PhpExecutableFinderTest.php

@@ -48,7 +48,9 @@ class PhpExecutableFinderTest extends \PHPUnit_Framework_TestCase
         $current = $f->find();
         
         //TODO maybe php executable is custom or even windows
-        $this->assertEquals($f->find(), PHP_BINDIR.DIRECTORY_SEPARATOR.'php', '::find() returns the executable php with suffixes');
+        if (false === strstr(PHP_OS, 'WIN')) {
+            $this->assertEquals($current, PHP_BINDIR.DIRECTORY_SEPARATOR.'php', '::find() returns the executable php with suffixes');
+        }
     }
     
     /**