Example #1
0
 public function testSkipsCurrentWhenTargetPathHasTrailingBackslash()
 {
     $path = $this->getTestDataDir() . '/collector/static-dir/';
     $filename = 'foo-%d.txt';
     $target = new Target($path, $filename, strtotime('2014-12-07 04:30:57'));
     $collector = new Collector($target);
     $files = $collector->getBackupFiles();
     $this->assertEquals(3, count($files), '3 files should be found');
 }