You are here

public function NumberComparatorTest::testTest in Database Sanitize 7

@dataProvider getTestData

File

vendor/symfony/finder/Tests/Comparator/NumberComparatorTest.php, line 41

Class

NumberComparatorTest

Namespace

Symfony\Component\Finder\Tests\Comparator

Code

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