assertFalse($cache->has($key)); $this->assertTrue($cache->put('data', $key)); $this->assertTrue($cache->has($key)); $this->assertEquals('data', $cache->get($key)); $this->assertTrue($cache->remove($key)); $this->expectException(common_cache_NotFoundException::class); $cache->get($key); $this->assertFalse($cache->has($key)); } public function keyProvider() { return [ ['normal'], ['\' " {} \\ / and other strange chars : ~!@#$%^&*()_+?'], ['_'], [':'], [' '], [''] ]; } }