Files
codefever/tests/service/CacheData/Store/DeleteTest.php

32 lines
578 B
PHP
Executable File

<?php
namespace Store;
use PHPUnit\Framework\TestCase;
use service\CacheData\Store;
class DeleteTest extends TestCase {
protected $store;
public function setUp()
{
$this->store = new Store();
}
public function testDelete()
{
$key = 'key';
$value = 'value';
$this->store->set($key, $value);
$this->assertTrue($this->store->exsit($key));
$this->store->delete($key);
$this->assertFalse($this->store->exsit($key));
}
public function tearDown()
{
unset($this->store);
}
}