public function ComparatorTest::testTest in Database Sanitize 7
@dataProvider getTestData
File
- vendor/
symfony/ finder/ Tests/ Comparator/ ComparatorTest.php, line 44
Class
Namespace
Symfony\Component\Finder\Tests\ComparatorCode
public function testTest($operator, $target, $match, $noMatch) {
$c = new Comparator();
$c
->setOperator($operator);
$c
->setTarget($target);
foreach ($match as $m) {
$this
->assertTrue($c
->test($m), '->test() tests a string against the expression');
}
foreach ($noMatch as $m) {
$this
->assertFalse($c
->test($m), '->test() tests a string against the expression');
}
}