You are here

public function ExecutableFinderTest::testFindWithDefault in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Tests/ExecutableFinderTest.php \Symfony\Component\Process\Tests\ExecutableFinderTest::testFindWithDefault()

File

vendor/symfony/process/Tests/ExecutableFinderTest.php, line 55

Class

ExecutableFinderTest
@author Chris Smith <chris@cs278.org>

Namespace

Symfony\Component\Process\Tests

Code

public function testFindWithDefault() {
  if (ini_get('open_basedir')) {
    $this
      ->markTestSkipped('Cannot test when open_basedir is set');
  }
  $expected = 'defaultValue';
  $this
    ->setPath('');
  $finder = new ExecutableFinder();
  $result = $finder
    ->find('foo', $expected);
  $this
    ->assertEquals($expected, $result);
}