You are here

public function FinderTest::testDate in Database Sanitize 7

File

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

Class

FinderTest

Namespace

Symfony\Component\Finder\Tests

Code

public function testDate() {
  $finder = $this
    ->buildFinder();
  $this
    ->assertSame($finder, $finder
    ->files()
    ->date('until last month'));
  $this
    ->assertIterator($this
    ->toAbsolute(array(
    'foo/bar.tmp',
    'test.php',
  )), $finder
    ->in(self::$tmpDir)
    ->getIterator());
}