function PathfilterTestCase::testFilesInvalidMatches in Path Filter 7
Same name and namespace in other branches
- 6.2 tests/pathfilter.test \PathfilterTestCase::testFilesInvalidMatches()
- 6 tests/pathfilter.test \PathfilterTestCase::testFilesInvalidMatches()
test_pathfilter
TODO: Write a description of the tests!
File
- tests/
pathfilter.test, line 123 - 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);
}