*/
protected $instance;
- function setUp()
+ protected function setUp()
{
parent::setUp();
if (!($this->instance instanceof IMemoryCacheDriver)) {
}
}
+ /**
+ * @small
+ */
function testCompareSet() {
$this->assertNull($this->instance->get('value1'));
$this->assertEquals($newValue, $received, 'Value not overwritten by compareSet');
}
+ /**
+ * @small
+ */
function testNegativeCompareSet() {
$this->assertNull($this->instance->get('value1'));
$this->assertEquals($value, $received, 'Value was wrongly overwritten by any other value');
}
+ /**
+ * @small
+ */
function testCompareDelete() {
$this->assertNull($this->instance->get('value1'));
$this->assertNull($this->instance->get('value1'), 'Value was not deleted by compareDelete');
}
+ /**
+ * @small
+ */
function testNegativeCompareDelete() {
$this->assertNull($this->instance->get('value1'));
$this->assertNull($this->instance->get('value1'), 'Value was wrongly NOT deleted by compareDelete');
}
+ /**
+ * @small
+ */
function testAdd() {
$this->assertNull($this->instance->get('value1'));