public function testImport() { self::assertNull($this->import()); $this->porter->shouldReceive('import')->andReturn(new \ArrayIterator($array = range(1, 5))); self::assertSame($array, $this->import()); }