public function testCacheUnavailable() { $this->setExpectedException(CacheUnavailableException::class); $this->porter->import($this->specification->setCacheAdvice(CacheAdvice::MUST_CACHE())); }
public function testImport() { self::assertNull($this->import()); $this->porter->shouldReceive('import')->andReturn(new \ArrayIterator($array = range(1, 5))); self::assertSame($array, $this->import()); }