Added simple test
This commit is contained in:
parent
fc8d81f9f9
commit
69b39cbb55
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ class RouterTest extends TestCase {
|
||||||
|
|
||||||
$this->assertEquals([1 => 'etc', 2 => 'passwd'], \PhangoApp\PhaRouter\filter_path('/...../etc/passwd'));
|
$this->assertEquals([1 => 'etc', 2 => 'passwd'], \PhangoApp\PhaRouter\filter_path('/...../etc/passwd'));
|
||||||
|
|
||||||
|
$this->assertEquals([1 => 'etc', 2 => 'passwd'], \PhangoApp\PhaRouter\filter_path('/../../etc/passwd'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue