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

30 lines
548 B
PHP
Executable File

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