locate() public method

public locate ( string $name, string $currentPath = null ) : string
$name string
$currentPath string
return string
 /**
  * @expectedException \Nelmio\Alice\Throwable\Exception\FileLocator\FileNotFoundException
  * @expectedExceptionMessageRegExp /^The file "(.+?)foobar.xml" does not exist\.$/
  */
 public function testLocatingFileThrowsExceptionIfTheFileDoesNotExistsInAbsolutePath()
 {
     $this->locator->locate(__DIR__ . '/Fixtures/foobar.xml');
 }