null_cache = new NullCache; } public function testNullCacheInstantiates() { $this->assertInstanceOf(NullCache::class, $this->null_cache); } public function testNullCacheSetsValue() { $esi_response = $this->createMock(EsiResponse::class); $return = $this->null_cache->set('/test', 'foo=bar', $esi_response); $this->assertNull($return); } public function testNullCacheGetsValue() { $this->assertFalse($this->null_cache->get('/test', 'foo=bar')); } public function testNullCacheForgetsValues() { $this->assertNull($this->null_cache->forget('/test', 'foo=bar')); } public function testNullCacheHasValue() { $this->assertFalse($this->null_cache->has('/test', 'foo=bar')); } }