mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Update path normalization test
This commit is contained in:
@@ -70,8 +70,8 @@ class PathNormalizationTest extends PHPUnit_Smarty
|
|||||||
$this->assertEquals($prefix . DIRECTORY_SEPARATOR . 'a.foo', $d);
|
$this->assertEquals($prefix . DIRECTORY_SEPARATOR . 'a.foo', $d);
|
||||||
}
|
}
|
||||||
public function testNormalizeToAbsoluteKomplex() {
|
public function testNormalizeToAbsoluteKomplex() {
|
||||||
$d = $this->smarty->_realpath('./foo/\\./bar/jo/wie/so/../../go/../..//.././../a.foo', true);
|
$d = $this->smarty->_realpath('./foo/\\./bar/jo/wie/so/../..///.././././../aa/bb/cc/../../go/a.foo', true);
|
||||||
$this->assertEquals(getcwd() . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'a.foo', $d);
|
$this->assertEquals(getcwd() . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'aa'. DIRECTORY_SEPARATOR . 'go' . DIRECTORY_SEPARATOR .'a.foo', $d);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user