for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\Ds\Cache;
use Ds\Cache\NullStorage;
class NullStorageTest extends \PHPUnit_Framework_TestCase
{
public $cacheStorage;
public function setUp()
$this->cacheStorage = new NullStorage();
}
public function testSet(){
$this->assertEquals($this->cacheStorage->set('key', 'value', 10), false);
public function testGet(){
$this->assertEquals($this->cacheStorage->get('key'), false);
public function testDelete(){
$this->assertEquals($this->cacheStorage->delete('key'), null);