diff --git a/Tests/Iterator/FilecontentFilterIteratorTest.php b/Tests/Iterator/FilecontentFilterIteratorTest.php index 1c0a3588..38bc6c9e 100644 --- a/Tests/Iterator/FilecontentFilterIteratorTest.php +++ b/Tests/Iterator/FilecontentFilterIteratorTest.php @@ -64,12 +64,14 @@ public function getFilename() public function isFile() { $name = parent::current(); + return preg_match('/file/', $name); } public function isDir() { $name = parent::current(); + return preg_match('/directory/', $name); } @@ -81,6 +83,7 @@ public function getRealpath() public function isReadable() { $name = parent::current(); + return preg_match('/r\+/', $name); }