Improve code, fix filesystem test failing after first run
This commit is contained in:
@@ -8,6 +8,9 @@ use IQParts\CacheTest\AbstractTestCase;
|
||||
|
||||
final class MemoryAdapterTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function testAdapter()
|
||||
{
|
||||
$adapter = new MemoryAdapter();
|
||||
@@ -25,7 +28,7 @@ final class MemoryAdapterTest extends AbstractTestCase
|
||||
|
||||
$adapter->set('a', 'b', 200);
|
||||
$this->assertTrue($adapter->ttl('a') > 0);
|
||||
$this->assertTrue($adapter->ttl('c') === MemoryAdapter::NO_TTL);
|
||||
$this->assertSame($adapter->ttl('c'), MemoryAdapter::NO_TTL);
|
||||
}
|
||||
|
||||
public function testTtl()
|
||||
|
||||
Reference in New Issue
Block a user