OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
symfony
/
finder
/
Tests
/
Iterator
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:19 AM
rwxr-xr-x
📄
CustomFilterIteratorTest.php
1.19 KB
08/07/2024 04:34:19 AM
rw-r--r--
📄
DateRangeFilterIteratorTest.php
2.51 KB
08/07/2024 04:34:19 AM
rw-r--r--
📄
DepthRangeFilterIteratorTest.php
2.8 KB
08/07/2024 04:34:19 AM
rw-r--r--
📄
ExcludeDirectoryFilterIteratorTest.php
2.92 KB
08/07/2024 04:34:19 AM
rw-r--r--
📄
FileTypeFilterIteratorTest.php
1.99 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
FilecontentFilterIteratorTest.php
2.56 KB
08/07/2024 04:34:19 AM
rw-r--r--
📄
FilenameFilterIteratorTest.php
1.19 KB
08/07/2024 04:34:19 AM
rw-r--r--
📄
InnerNameIterator.php
555 bytes
08/07/2024 04:34:20 AM
rw-r--r--
📄
Iterator.php
1.1 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
IteratorTestCase.php
3.4 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
LazyIteratorTest.php
1.22 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
MockFileListIterator.php
553 bytes
08/07/2024 04:34:20 AM
rw-r--r--
📄
MockSplFileInfo.php
3.21 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
MultiplePcreFilterIteratorTest.php
2.36 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
PathFilterIteratorTest.php
3.03 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
RealIteratorTestCase.php
4.81 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
RecursiveDirectoryIteratorTest.php
1.56 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
SizeRangeFilterIteratorTest.php
1.63 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
SortableIteratorTest.php
8.22 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
VcsIgnoredFilterIteratorTest.php
10.18 KB
08/07/2024 04:34:20 AM
rw-r--r--
📄
VfsIteratorTestTrait.php
5.36 KB
08/07/2024 04:34:20 AM
rw-r--r--
Editing: FilenameFilterIteratorTest.php
Close
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Tests\Iterator; use Symfony\Component\Finder\Iterator\FilenameFilterIterator; class FilenameFilterIteratorTest extends IteratorTestCase { /** * @dataProvider getAcceptData */ public function testAccept($matchPatterns, $noMatchPatterns, $expected) { $inner = new InnerNameIterator(['test.php', 'test.py', 'foo.php']); $iterator = new FilenameFilterIterator($inner, $matchPatterns, $noMatchPatterns); $this->assertIterator($expected, $iterator); } public static function getAcceptData() { return [ [['test.*'], [], ['test.php', 'test.py']], [[], ['test.*'], ['foo.php']], [['*.php'], ['test.*'], ['foo.php']], [['*.php', '*.py'], ['foo.*'], ['test.php', 'test.py']], [['/\.php$/'], [], ['test.php', 'foo.php']], [[], ['/\.php$/'], ['test.py']], ]; } }