protected function MemcachedProfilerStorageTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/Profiler/MemcachedProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\MemcachedProfilerStorageTest::setUp()
File
- vendor/
symfony/ http-kernel/ Tests/ Profiler/ MemcachedProfilerStorageTest.php, line 21
Class
Namespace
Symfony\Component\HttpKernel\Tests\ProfilerCode
protected function setUp() {
$memcachedMock = new MemcachedMock();
$memcachedMock
->addServer('127.0.0.1', 11211);
self::$storage = new MemcachedProfilerStorage('memcached://127.0.0.1:11211', '', '', 86400);
self::$storage
->setMemcached($memcachedMock);
if (self::$storage) {
self::$storage
->purge();
}
}