public function __construct(\Iterator $data)
 {
     parent::__construct(new StaticResource($data));
 }
예제 #2
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());
 }