Redaxscript\Tests\Filter\PathTest::testPath PHP Method

testPath() public method

testPath
Since: 2.6.0
public testPath ( string $path = null, string $expect = null )
$path string
$expect string
    public function testPath($path = null, $expect = null)
    {
        /* setup */
        $filter = new Filter\Path();
        /* actual */
        $actual = $filter->sanitize($path);
        /* compare */
        $this->assertEquals($expect, $actual);
    }