public function test() { $records = new ProviderRecords(\Mockery::mock(\Iterator::class), $resource = \Mockery::mock(ProviderResource::class)); self::assertSame($resource, $records->getResource()); }
/** * @param \Iterator $providerRecords * @param int $count * @param ProviderResource $resource */ public function __construct(\Iterator $providerRecords, $count, ProviderResource $resource) { parent::__construct($providerRecords, $resource); $this->setCount($count); }