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