function PathfilterTestCase::testFilesInvalidMatches in Path Filter 6
Same name and namespace in other branches
- 6.2 tests/pathfilter.test \PathfilterTestCase::testFilesInvalidMatches()
- 7 tests/pathfilter.test \PathfilterTestCase::testFilesInvalidMatches()
test_pathfilter
TODO: Write a description of the tests!
File
- tests/
pathfilter.test, line 146 - Tests for Path Filter
Class
Code
function testFilesInvalidMatches() {
$snippets = array(
'"internal:admin/user\'' => PATHFILTER_NOT_OK,
// mismatched quotes
'\'internal:admin/user"' => PATHFILTER_NOT_OK,
// mismatched quotes
'"files:images/somefile.jpg' . "'" => PATHFILTER_NOT_OK,
);
$this
->CompareSnippets($snippets);
}