use PHPUnit\Framework\TestCase;
use Psr\Cache\CacheItemInterface;
use Symfony\Component\Cache\Adapter\NullAdapter;
/**
* @group time-sensitive
*/
class NullAdapterTest extends TestCase
{ public function createCachePool() { return new NullAdapter();
} public function testGetItem() { $adapter =
$this->
createCachePool();
$item =
$adapter->
getItem('key'
);
$this->
assertFalse($item->
isHit());
$this->
assertNull($item->
get(), "Item's value must be null when isHit is false."
);
}