public function testReservedCacheKeyPattern() { try { $this->cache->put('keyword[test]', 'test', 60); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->keywords('test')->add('keyword_index[test]', 'test', 60); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->keywords('test')->forever('keyword[test]', 'test'); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->rememberForever('keyword_index[test]', function () { return 'test'; }); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->remember('keyword[test]', 60, function () { return 'test'; }); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->keywords('test')->sear('keyword_index[test]', function () { return 'test'; }); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->forget('keyword[test]'); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } try { $this->cache->forget('keyword_index[test]'); $this->fail($this->failReservedCacheKeyPatternException()); } catch (ReservedCacheKeyPatternException $e) { } }