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