public function ExecutableFinderTest::testFind in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/ExecutableFinderTest.php \Symfony\Component\Process\Tests\ExecutableFinderTest::testFind()
File
- vendor/
symfony/ process/ Tests/ ExecutableFinderTest.php, line 37
Class
- ExecutableFinderTest
- @author Chris Smith <chris@cs278.org>
Namespace
Symfony\Component\Process\TestsCode
public function testFind() {
if (!defined('PHP_BINARY')) {
$this
->markTestSkipped('Requires the PHP_BINARY constant');
}
if (ini_get('open_basedir')) {
$this
->markTestSkipped('Cannot test when open_basedir is set');
}
$this
->setPath(dirname(PHP_BINARY));
$finder = new ExecutableFinder();
$result = $finder
->find($this
->getPhpBinaryName());
$this
->assertSamePath(PHP_BINARY, $result);
}