1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-31 13:48:04 +01:00

[ticket/9983] Exercise exists also.

PHPBB3-9983
This commit is contained in:
Oleg Pudeyev 2012-12-01 18:57:09 -05:00
parent d9e636fab0
commit 8595b1f560

View File

@ -9,12 +9,14 @@
abstract class phpbb_cache_common_test_case extends phpbb_database_test_case
{
public function test_get_put()
public function test_get_put_exists()
{
$this->assertFalse($this->driver->_exists('test_key'));
$this->assertSame(false, $this->driver->get('test_key'));
$this->driver->put('test_key', 'test_value');
$this->assertTrue($this->driver->_exists('test_key'));
$this->assertEquals(
'test_value',
$this->driver->get('test_key'),