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.15.10.50
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
yoomoney /
yookassa-sdk-php /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
Client
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Common
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Helpers
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Model
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
Request
[ DIR ]
drwxrwxr-x
2023-01-19 06:56
AutoloadTest.php
2.37
KB
-rw-rw-r--
2023-01-19 06:56
Save
Rename
<?php // //namespace YooKassa; // //use PHPUnit\Framework\TestCase; // //require_once __DIR__ . '/../lib/autoload.php'; // //class AutoloadTest extends TestCase //{ // public function testAutoload() // { // $functions = spl_autoload_functions(); // $lastFunction = array_pop($functions); // self::assertEquals('yookassaSdkLoadClass', $lastFunction); // // self::assertTrue(defined('YOOKASSA_SDK_ROOT_PATH')); // self::assertFalse(!defined('YOOKASSA_SDK_ROOT_PATH')); // self::assertTrue(defined('YOOKASSA_SDK_PSR_LOG_PATH')); // self::assertFalse(!defined('YOOKASSA_SDK_PSR_LOG_PATH')); // // foreach ($functions as $function) { // spl_autoload_unregister($function); // } // // $this->walkDirectoriesAndTest(YOOKASSA_SDK_ROOT_PATH, 'YooKassa'); // $this->walkDirectoriesAndTest(YOOKASSA_SDK_PSR_LOG_PATH, 'Psr\Log'); // // self::assertFalse(class_exists('Unknown\\Class\\Name')); // // spl_autoload_unregister($lastFunction); // foreach ($functions as $function) { // spl_autoload_register($function); // } // } // // private function walkDirectoriesAndTest($directoryName, $namespace) // { // $dir = opendir($directoryName); // while (($entry = readdir($dir)) !== false) { // if ($entry === '.' || $entry === '..') { // continue; // } // $path = $directoryName . DIRECTORY_SEPARATOR . $entry; // if (is_dir($entry)) { // $this->walkDirectoriesAndTest($path, $namespace . '\\' . $entry); // } else { // $extension = pathinfo($entry, PATHINFO_EXTENSION); // if ($extension === 'php' && strtoupper($entry[0]) === $entry[0]) { // $className = $namespace . '\\' . pathinfo($entry, PATHINFO_FILENAME); // if (!$this->classExists($className)) { // yookassaSdkLoadClass($className); // self::assertTrue($this->classExists($className), 'Class "' . $className . '" not exists'); // } // } // } // } // closedir($dir); // } // // private function classExists($className) // { // return class_exists($className, false) || interface_exists($className, false) || trait_exists($className, false); // } //}