You are here

public function DateComparatorTest::testTest in Database Sanitize 7

@dataProvider getTestData

File

vendor/symfony/finder/Tests/Comparator/DateComparatorTest.php, line 39

Class

DateComparatorTest

Namespace

Symfony\Component\Finder\Tests\Comparator

Code

public function testTest($test, $match, $noMatch) {
  $c = new DateComparator($test);
  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');
  }
}