コード例 #1
0
 public function __construct(\Iterator $data)
 {
     parent::__construct(new StaticResource($data));
 }
コード例 #2
0
ファイル: PorterTest.php プロジェクト: ScriptFUSION/Porter
 public function testCacheUnavailable()
 {
     $this->setExpectedException(CacheUnavailableException::class);
     $this->porter->import($this->specification->setCacheAdvice(CacheAdvice::MUST_CACHE()));
 }
コード例 #3
0
 public function testCacheAdvice()
 {
     self::assertSame($advice = CacheAdvice::MUST_CACHE(), $this->specification->setCacheAdvice($advice)->getCacheAdvice());
 }