class MemcacheProfilerStorageTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Profiler/MemcacheProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\MemcacheProfilerStorageTest
Hierarchy
- class \Symfony\Component\HttpKernel\Tests\Profiler\AbstractProfilerStorageTest extends \Symfony\Component\HttpKernel\Tests\Profiler\PHPUnit_Framework_TestCase
- class \Symfony\Component\HttpKernel\Tests\Profiler\MemcacheProfilerStorageTest
Expanded class hierarchy of MemcacheProfilerStorageTest
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ MemcacheProfilerStorageTest.php, line 17
Namespace
Symfony\Component\HttpKernel\Tests\ProfilerView source
class MemcacheProfilerStorageTest extends AbstractProfilerStorageTest {
protected static $storage;
protected function setUp() {
$memcacheMock = new MemcacheMock();
$memcacheMock
->addServer('127.0.0.1', 11211);
self::$storage = new MemcacheProfilerStorage('memcache://127.0.0.1:11211', '', '', 86400);
self::$storage
->setMemcache($memcacheMock);
if (self::$storage) {
self::$storage
->purge();
}
}
protected function tearDown() {
if (self::$storage) {
self::$storage
->purge();
self::$storage = false;
}
}
/**
* @return \Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface
*/
protected function getStorage() {
return self::$storage;
}
}