fkooman\RemoteStorage\PathTest::testInvalidPaths PHP Méthode

testInvalidPaths() public méthode

public testInvalidPaths ( )
    public function testInvalidPaths()
    {
        $testPath = array('/', '/admin', '///', '/admin/foo//bar/', 'admin/public/foo.txt', '/admin/foo/../../', '/foo%2fbar', '/foo/%2e%2e/bar');
        foreach ($testPath as $t) {
            try {
                $p = new Path($t);
                $this->assertTrue(false, $t);
            } catch (PathException $e) {
                $this->assertTrue(true);
            }
        }
    }