From 4ccafa6396a40426809aa71e19b05025a56af923 Mon Sep 17 00:00:00 2001 From: julien Galenski Date: Thu, 17 Oct 2013 17:53:39 +0200 Subject: [PATCH] Fix finder date constraints and tests --- .../Component/Finder/Iterator/DateRangeFilterIterator.php | 4 ---- .../Finder/Tests/Iterator/DateRangeFilterIteratorTest.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php b/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php index 3e5713b8e6968..fbdff76ef40b3 100644 --- a/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php @@ -44,10 +44,6 @@ public function accept() { $fileinfo = $this->current(); - if (!$fileinfo->isFile()) { - return true; - } - $filedate = $fileinfo->getMTime(); foreach ($this->comparators as $compare) { if (!$compare->test($filedate)) { diff --git a/src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php b/src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php index 18896d552891d..008f966b90dd5 100644 --- a/src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php +++ b/src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php @@ -57,12 +57,8 @@ public function getAcceptData() ); $untilLastMonth = array( - '.git', - 'foo', 'foo/bar.tmp', 'test.php', - 'toto', - '.foo', ); return array( pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy