Пример #1
0
 public function testFailsPullFromCacheWithoutKey()
 {
     $this->mockFetcher->expects($this->once())->method('getCacheKey')->will($this->returnValue(null));
     $implementation = new CacheTraitImplementation(['cache' => $this->mockCache, 'fetcher' => $this->mockFetcher]);
     $cachedValue = $implementation->gCachedValue();
 }
 public function testFailsPullFromCacheWithoutKey()
 {
     $implementation = new CacheTraitImplementation(['cache' => $this->mockCache, 'key' => null]);
     $cachedValue = $implementation->gCachedValue();
 }