Extends
lithium\test\Unit
Tests that `Libraries::realPath()` correctly resolves paths to files inside Phar archives.
Returns
voidSource
public function testPathsInPharArchives() {
$base = Libraries::get('lithium', 'path');
$path = realpath("{$base}/console/command/create/template/app.phar.gz");
$expected = "phar://{$path}/controllers/HelloWorldController.php";
$result = Libraries::realPath($expected);
$this->assertEqual($expected, $result);
}