Skip to content

Commit ebc9979

Browse files
committed
[Process] fixed unit tests on PHP 5.4
1 parent 89bd0d7 commit ebc9979

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Symfony/Tests/Component/Process/PhpExecutableFinderTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class PhpExecutableFinderTest extends \PHPUnit_Framework_TestCase
2323
*/
2424
public function testFindWithPHP_PATH()
2525
{
26+
if (defined('PHP_BINARY')) {
27+
$this->markTestSkipped('The PHP binary is easily available as of PHP 5.4');
28+
}
29+
2630
$f = new PhpExecutableFinder();
2731

2832
$current = $f->find();
@@ -41,6 +45,10 @@ public function testFindWithPHP_PATH()
4145
*/
4246
public function testFindWithSuffix()
4347
{
48+
if (defined('PHP_BINARY')) {
49+
$this->markTestSkipped('The PHP binary is easily available as of PHP 5.4');
50+
}
51+
4452
putenv('PHP_PATH=');
4553
putenv('PHP_PEAR_PHP_BIN=');
4654
$f = new PhpExecutableFinder();

0 commit comments

Comments
 (0)