namespace Symfony\Component\Finder\Tests\Iterator;
use Symfony\Component\Finder\Iterator\CustomFilterIterator;
class CustomFilterIteratorTest extends IteratorTestCase
{ public function testWithInvalidFilter() { $this->
expectException(\InvalidArgumentException::
class);
new CustomFilterIterator(new Iterator(),
['foo'
]);
} /**
* @dataProvider getAcceptData
*/
public function testAccept($filters,
$expected) { $inner =
new Iterator(['test.php', 'test.py', 'foo.php'
]);
$iterator =
new CustomFilterIterator($inner,
$filters);