Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.144.132.48
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
phpunit /
php-file-iterator /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
FactoryTest.php
1.2
KB
-rw-r--r--
2018-09-13 09:00
Save
Rename
<?php /* * This file is part of php-file-iterator. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\FileIterator; use PHPUnit\Framework\TestCase; /** * @covers \SebastianBergmann\FileIterator\Factory */ class FactoryTest extends TestCase { /** * @var string */ private $root; /** * @var Factory */ private $factory; protected function setUp(): void { $this->root = __DIR__; $this->factory = new Factory; } public function testFindFilesInTestDirectory(): void { $iterator = $this->factory->getFileIterator($this->root, 'Test.php'); $files = \iterator_to_array($iterator); $this->assertGreaterThanOrEqual(1, \count($files)); } public function testFindFilesWithExcludedNonExistingSubdirectory(): void { $iterator = $this->factory->getFileIterator($this->root, 'Test.php', '', [$this->root . '/nonExistingDir']); $files = \iterator_to_array($iterator); $this->assertGreaterThanOrEqual(1, \count($files)); } }