コード例 #1
0
ファイル: PorterTest.php プロジェクト: ScriptFUSION/Porter
 public function testCacheUnavailable()
 {
     $this->setExpectedException(CacheUnavailableException::class);
     $this->porter->import($this->specification->setCacheAdvice(CacheAdvice::MUST_CACHE()));
 }
コード例 #2
0
ファイル: SubImportTest.php プロジェクト: ScriptFUSION/Porter
 public function testImport()
 {
     self::assertNull($this->import());
     $this->porter->shouldReceive('import')->andReturn(new \ArrayIterator($array = range(1, 5)));
     self::assertSame($array, $this->import());
 }