namespace Symfony\Component\Finder\Tests\Iterator;
use Symfony\Component\Finder\Iterator\FilecontentFilterIterator;
class FilecontentFilterIteratorTest extends IteratorTestCase
{ public function testAccept() { $inner =
new MockFileListIterator(['test.txt'
]);
$iterator =
new FilecontentFilterIterator($inner,
[],
[]);
$this->
assertIterator(['test.txt'
],
$iterator);
} public function testDirectory() { $inner =
new MockFileListIterator(['directory'
]);
$iterator =
new FilecontentFilterIterator($inner,
['directory'
],
[]);
$this->
assertIterator([],
$iterator);
} public function testUnreadableFile() {