PEAR2_Cache_SHMPEAR2_Cache_SHM-0.1.3/tests/PHPT/Common/testSettingAndDeletingValue.phpt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Tests seting and deleting a value
--FILE--
<?php
require_once '../includes/runner.php';

$adapterName = 'PEAR2\Cache\SHM\Adapter\\' . $adapter;
$object = new $adapterName('TEST');

assertSame(true, $object->set('key', 'value'), __FILE__);
assertSame(true, $object->delete('key'), __FILE__);
assertSame(false, $object->delete('key'), __FILE__);
?>
--EXPECT--
EOF