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 : 18.188.161.182
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
phar-io /
manifest /
tests /
xml /
Delete
Unzip
Name
Size
Permission
Date
Action
AuthorElementCollectionTest.php
588
B
-rw-r--r--
2020-11-17 16:24
AuthorElementTest.php
707
B
-rw-r--r--
2020-11-17 16:24
BundlesElementTest.php
1.13
KB
-rw-r--r--
2020-11-17 16:24
ComponentElementCollectionTest.php
563
B
-rw-r--r--
2020-11-17 16:24
ComponentElementTest.php
713
B
-rw-r--r--
2020-11-17 16:24
ContainsElementTest.php
1.99
KB
-rw-r--r--
2020-11-17 16:24
CopyrightElementTest.php
1.59
KB
-rw-r--r--
2020-11-17 16:24
ExtElementCollectionTest.php
587
B
-rw-r--r--
2020-11-17 16:24
ExtElementTest.php
510
B
-rw-r--r--
2020-11-17 16:24
ExtensionElementTest.php
737
B
-rw-r--r--
2020-11-17 16:24
LicenseElementTest.php
709
B
-rw-r--r--
2020-11-17 16:24
ManifestDocumentTest.php
3.63
KB
-rw-r--r--
2020-11-17 16:24
PhpElementTest.php
1.32
KB
-rw-r--r--
2020-11-17 16:24
RequiresElementTest.php
1
KB
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php namespace PharIo\Manifest; class ManifestDocumentTest extends \PHPUnit\Framework\TestCase { public function testThrowsExceptionWhenFileDoesNotExist() { $this->expectException(ManifestDocumentException::class); ManifestDocument::fromFile('/does/not/exist'); } public function testCanBeCreatedFromFile() { $this->assertInstanceOf( ManifestDocument::class, ManifestDocument::fromFile(__DIR__ . '/../_fixture/phpunit-5.6.5.xml') ); } public function testCaneBeConstructedFromString() { $content = file_get_contents(__DIR__ . '/../_fixture/phpunit-5.6.5.xml'); $this->assertInstanceOf( ManifestDocument::class, ManifestDocument::fromString($content) ); } public function testThrowsExceptionOnInvalidXML() { $this->expectException(ManifestDocumentLoadingException::class); ManifestDocument::fromString('<?xml version="1.0" ?><root>'); } public function testLoadingDocumentWithWrongRootNameThrowsException() { $this->expectException(ManifestDocumentException::class); ManifestDocument::fromString('<?xml version="1.0" ?><root />'); } public function testLoadingDocumentWithWrongNamespaceThrowsException() { $this->expectException(ManifestDocumentException::class); ManifestDocument::fromString('<?xml version="1.0" ?><phar xmlns="foo:bar" />'); } public function testContainsElementCanBeRetrieved() { $this->assertInstanceOf( ContainsElement::class, $this->loadFixture()->getContainsElement() ); } public function testRequiresElementCanBeRetrieved() { $this->assertInstanceOf( RequiresElement::class, $this->loadFixture()->getRequiresElement() ); } public function testCopyrightElementCanBeRetrieved() { $this->assertInstanceOf( CopyrightElement::class, $this->loadFixture()->getCopyrightElement() ); } public function testBundlesElementCanBeRetrieved() { $this->assertInstanceOf( BundlesElement::class, $this->loadFixture()->getBundlesElement() ); } public function testThrowsExceptionWhenContainsIsMissing() { $this->expectException(ManifestDocumentException::class); $this->loadEmptyFixture()->getContainsElement(); } public function testThrowsExceptionWhenCopyirhgtIsMissing() { $this->expectException(ManifestDocumentException::class); $this->loadEmptyFixture()->getCopyrightElement(); } public function testThrowsExceptionWhenRequiresIsMissing() { $this->expectException(ManifestDocumentException::class); $this->loadEmptyFixture()->getRequiresElement(); } public function testThrowsExceptionWhenBundlesIsMissing() { $this->expectException(ManifestDocumentException::class); $this->loadEmptyFixture()->getBundlesElement(); } public function testHasBundlesReturnsTrueWhenBundlesNodeIsPresent() { $this->assertTrue( $this->loadFixture()->hasBundlesElement() ); } public function testHasBundlesReturnsFalseWhenBundlesNoNodeIsPresent() { $this->assertFalse( $this->loadEmptyFixture()->hasBundlesElement() ); } private function loadFixture() { return ManifestDocument::fromFile(__DIR__ . '/../_fixture/phpunit-5.6.5.xml'); } private function loadEmptyFixture() { return ManifestDocument::fromString( '<?xml version="1.0" ?><phar xmlns="https://phar.io/xml/manifest/1.0" />' ); } }