/** * @inheritdoc */ public function getData() { return $this->paginator->getIterator(); }
function it_gets_the_array_of_data(Paginator $paginator) { $expected = new \ArrayIterator(['test']); $paginator->getIterator()->shouldBeCalledTimes(1)->willReturn($expected); $this->getData()->shouldReturn($expected); }