public function testImportOneOfMany() { $this->setExpectedException(ImportException::class); $this->provider->shouldReceive('fetch')->andReturn(new \ArrayIterator(['foo', 'bar'])); $this->porter->importOne($this->specification); }