setCacheAdvice() final public method

final public setCacheAdvice ( CacheAdvice $cacheAdvice )
$cacheAdvice ScriptFUSION\Porter\Cache\CacheAdvice
示例#1
0
 public function testCacheUnavailable()
 {
     $this->setExpectedException(CacheUnavailableException::class);
     $this->porter->import($this->specification->setCacheAdvice(CacheAdvice::MUST_CACHE()));
 }
 public function testCacheAdvice()
 {
     self::assertSame($advice = CacheAdvice::MUST_CACHE(), $this->specification->setCacheAdvice($advice)->getCacheAdvice());
 }