Fix finder date constraints and tests
This commit is contained in:
parent
1206176fc4
commit
4ccafa6396
@ -44,10 +44,6 @@ class DateRangeFilterIterator extends FilterIterator
|
||||
{
|
||||
$fileinfo = $this->current();
|
||||
|
||||
if (!$fileinfo->isFile()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$filedate = $fileinfo->getMTime();
|
||||
foreach ($this->comparators as $compare) {
|
||||
if (!$compare->test($filedate)) {
|
||||
|
@ -57,12 +57,8 @@ class DateRangeFilterIteratorTest extends RealIteratorTestCase
|
||||
);
|
||||
|
||||
$untilLastMonth = array(
|
||||
'.git',
|
||||
'foo',
|
||||
'foo/bar.tmp',
|
||||
'test.php',
|
||||
'toto',
|
||||
'.foo',
|
||||
);
|
||||
|
||||
return array(
|
||||
|
Reference in New Issue
Block a user