'https://server/foo.xml'
],
['phar://server/foo.xml'
],
];
} public function testLocate() { $loader =
new FileLocator(__DIR__.'/Fixtures'
);
$this->
assertEquals( __DIR__.\DIRECTORY_SEPARATOR.'FileLocatorTest.php',
$loader->
locate('FileLocatorTest.php', __DIR__
),
'->locate() returns the absolute filename if the file exists in the given path'
);
$this->
assertEquals( __DIR__.'/Fixtures'.\DIRECTORY_SEPARATOR.'foo.xml',
$loader->
locate('foo.xml', __DIR__
),
'->locate() returns the absolute filename if the file exists in one of the paths given in the constructor'
);
$this->
assertEquals( __DIR__.'/Fixtures'.\DIRECTORY_SEPARATOR.'foo.xml',