You are here

public function FinderTest::testPath in Database Sanitize 7

@dataProvider getTestPathData

File

vendor/symfony/finder/Tests/FinderTest.php, line 612

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testPath($matchPatterns, $noMatchPatterns, array $expected) {
  $finder = $this
    ->buildFinder();
  $finder
    ->in(__DIR__ . \DIRECTORY_SEPARATOR . 'Fixtures')
    ->path($matchPatterns)
    ->notPath($noMatchPatterns);
  $this
    ->assertIterator($this
    ->toAbsoluteFixtures($expected), $finder);
}