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.140.254.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
phpunit /
phpunit /
src /
Util /
Delete
Unzip
Name
Size
Permission
Date
Action
Log
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
PHP
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
TestDox
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
Blacklist.php
3.65
KB
-rw-r--r--
2018-12-03 09:00
Configuration.php
40.12
KB
-rw-r--r--
2018-12-03 09:00
ConfigurationGenerator.php
1.69
KB
-rw-r--r--
2018-12-03 09:00
ErrorHandler.php
2.83
KB
-rw-r--r--
2018-12-03 09:00
FileLoader.php
2.07
KB
-rw-r--r--
2018-12-03 09:00
Filesystem.php
696
B
-rw-r--r--
2018-12-03 09:00
Filter.php
2.44
KB
-rw-r--r--
2018-12-03 09:00
Getopt.php
4.94
KB
-rw-r--r--
2018-12-03 09:00
GlobalState.php
4.67
KB
-rw-r--r--
2018-12-03 09:00
InvalidArgumentHelper.php
959
B
-rw-r--r--
2018-12-03 09:00
Json.php
2.42
KB
-rw-r--r--
2018-12-03 09:00
NullTestResultCache.php
597
B
-rw-r--r--
2018-12-03 09:00
Printer.php
3.36
KB
-rw-r--r--
2018-12-03 09:00
RegularExpression.php
709
B
-rw-r--r--
2018-12-03 09:00
Test.php
36.79
KB
-rw-r--r--
2018-12-03 09:00
TestResultCache.php
4.73
KB
-rw-r--r--
2018-12-03 09:00
TestResultCacheInterface.php
461
B
-rw-r--r--
2018-12-03 09:00
TextTestListRenderer.php
1.13
KB
-rw-r--r--
2018-12-03 09:00
Type.php
805
B
-rw-r--r--
2018-12-03 09:00
XdebugFilterScriptGenerator.php
1.41
KB
-rw-r--r--
2018-12-03 09:00
Xml.php
7.9
KB
-rw-r--r--
2018-12-03 09:00
XmlTestListRenderer.php
2.4
KB
-rw-r--r--
2018-12-03 09:00
Save
Rename
<?php /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Runner; class TestResultCache implements \Serializable, TestResultCacheInterface { /** * @var string */ public const DEFAULT_RESULT_CACHE_FILENAME = '.phpunit.result.cache'; /** * Provide extra protection against incomplete or corrupt caches * * @var array<string, string> */ private const ALLOWED_CACHE_TEST_STATUSES = [ BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE, BaseTestRunner::STATUS_FAILURE, BaseTestRunner::STATUS_ERROR, BaseTestRunner::STATUS_RISKY, BaseTestRunner::STATUS_WARNING, ]; /** * Path and filename for result cache file * * @var string */ private $cacheFilename; /** * The list of defective tests * * <code> * // Mark a test skipped * $this->defects[$testName] = BaseTestRunner::TEST_SKIPPED; * </code> * * @var array array<string, int> */ private $defects = []; /** * The list of execution duration of suites and tests (in seconds) * * <code> * // Record running time for test * $this->times[$testName] = 1.234; * </code> * * @var array<string, float> */ private $times = []; public function __construct($filename = null) { $this->cacheFilename = $filename ?? $_ENV['PHPUNIT_RESULT_CACHE'] ?? self::DEFAULT_RESULT_CACHE_FILENAME; } public function persist(): void { $this->saveToFile(); } public function saveToFile(): void { if (\defined('PHPUNIT_TESTSUITE_RESULTCACHE')) { return; } if (!$this->createDirectory(\dirname($this->cacheFilename))) { throw new Exception( \sprintf( 'Cannot create directory "%s" for result cache file', $this->cacheFilename ) ); } \file_put_contents( $this->cacheFilename, \serialize($this) ); } public function setState(string $testName, int $state): void { if ($state !== BaseTestRunner::STATUS_PASSED) { $this->defects[$testName] = $state; } } public function getState($testName): int { return $this->defects[$testName] ?? BaseTestRunner::STATUS_UNKNOWN; } public function setTime(string $testName, float $time): void { $this->times[$testName] = $time; } public function getTime($testName): float { return $this->times[$testName] ?? 0; } public function load(): void { $this->clear(); if (\is_file($this->cacheFilename) === false) { return; } $cacheData = @\file_get_contents($this->cacheFilename); // @codeCoverageIgnoreStart if ($cacheData === false) { return; } // @codeCoverageIgnoreEnd $cache = @\unserialize($cacheData, ['allowed_classes' => [self::class]]); if ($cache === false) { return; } if ($cache instanceof self) { /* @var \PHPUnit\Runner\TestResultCache */ $cache->copyStateToCache($this); } } public function copyStateToCache(self $targetCache): void { foreach ($this->defects as $name => $state) { $targetCache->setState($name, $state); } foreach ($this->times as $name => $time) { $targetCache->setTime($name, $time); } } public function clear(): void { $this->defects = []; $this->times = []; } public function serialize(): string { return \serialize([ 'defects' => $this->defects, 'times' => $this->times, ]); } public function unserialize($serialized): void { $data = \unserialize($serialized); if (isset($data['times'])) { foreach ($data['times'] as $testName => $testTime) { $this->times[$testName] = (float) $testTime; } } if (isset($data['defects'])) { foreach ($data['defects'] as $testName => $testResult) { if (\in_array($testResult, self::ALLOWED_CACHE_TEST_STATUSES, true)) { $this->defects[$testName] = $testResult; } } } } private function createDirectory(string $directory): bool { return !(!\is_dir($directory) && !@\mkdir($directory, 0777, true) && !\is_dir($directory)); } }