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.117.132.79
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
psy /
psysh /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
CodeCleaner
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Command
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Exception
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Formatter
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Input
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Readline
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Reflection
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Sudo
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
TabCompletion
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
Util
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
VersionUpdater
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
fixtures
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
tools
[ DIR ]
drwxr-xr-x
2018-10-13 15:16
ClassWithSecrets.php
895
B
-rw-r--r--
2018-10-13 15:16
CodeCleanerTest.php
3.23
KB
-rw-r--r--
2018-10-13 15:16
ConfigurationTest.php
8.04
KB
-rw-r--r--
2018-10-13 15:16
ConsoleColorFactoryTest.php
1.47
KB
-rw-r--r--
2018-10-13 15:16
ContextTest.php
9.17
KB
-rw-r--r--
2018-10-13 15:16
FakeShell.php
529
B
-rw-r--r--
2018-10-13 15:16
ParserTestCase.php
2.4
KB
-rw-r--r--
2018-10-13 15:16
ShellTest.php
13.18
KB
-rw-r--r--
2018-10-13 15:16
SudoTest.php
2.71
KB
-rw-r--r--
2018-10-13 15:16
Save
Rename
<?php /* * This file is part of Psy Shell. * * (c) 2012-2018 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\Test; use PhpParser\PrettyPrinter\Standard as Printer; use Psy\Exception\ParseErrorException; use Psy\ParserFactory; class ParserTestCase extends \PHPUnit\Framework\TestCase { protected $traverser; private $parser; private $printer; public function tearDown() { $this->traverser = null; $this->parser = null; $this->printer = null; } protected function parse($code, $prefix = '<?php ') { $code = $prefix . $code; try { return $this->getParser()->parse($code); } catch (\PhpParser\Error $e) { if (!$this->parseErrorIsEOF($e)) { throw ParseErrorException::fromParseError($e); } try { // Unexpected EOF, try again with an implicit semicolon return $this->getParser()->parse($code . ';'); } catch (\PhpParser\Error $e) { return false; } } } protected function traverse(array $stmts) { if (!isset($this->traverser)) { throw new \RuntimeException('Test cases must provide a traverser'); } return $this->traverser->traverse($stmts); } protected function prettyPrint(array $stmts) { return $this->getPrinter()->prettyPrint($stmts); } protected function assertProcessesAs($from, $to) { $stmts = $this->parse($from); $stmts = $this->traverse($stmts); $toStmts = $this->parse($to); $this->assertSame($this->prettyPrint($toStmts), $this->prettyPrint($stmts)); } private function getParser() { if (!isset($this->parser)) { $parserFactory = new ParserFactory(); $this->parser = $parserFactory->createParser(); } return $this->parser; } private function getPrinter() { if (!isset($this->printer)) { $this->printer = new Printer(); } return $this->printer; } private function parseErrorIsEOF(\PhpParser\Error $e) { $msg = $e->getRawMessage(); return ($msg === 'Unexpected token EOF') || (\strpos($msg, 'Syntax error, unexpected EOF') !== false); } }