Commit e50f13d4 authored by Vincent Petry's avatar Vincent Petry
Browse files

Add positive test for path verification

parent c3ae01d6
......@@ -230,4 +230,30 @@ class PathVerification extends \Test\TestCase {
];
}
/**
* @dataProvider providesValidPosixPaths
*/
public function testPathVerificationValidPaths($fileName) {
$storage = new Local(['datadir' => '']);
\Test_Helper::invokePrivate($storage, 'verifyPosixPath', [$fileName]);
\Test_Helper::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
// nothing thrown
$this->assertTrue(true);
}
public function providesValidPosixPaths() {
return [
['simple'],
['simple.txt'],
['\''],
['`'],
['%'],
['()'],
['[]'],
['!'],
['$'],
['_'],
];
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment