fkooman\RemoteStorage\PathTest::testValidPaths PHP Method

testValidPaths() public method

public testValidPaths ( )
    public function testValidPaths()
    {
        $testPath = array('/admin/public/foo/', '/admin/foo/', '/admin/public/foo/bar.txt', '/admin/public/foo/bar/very/long/path/with/Document');
        foreach ($testPath as $t) {
            try {
                $p = new Path($t);
                $this->assertTrue(true);
            } catch (PathException $e) {
                $this->assertTrue(false);
            }
        }
    }