/** * @expectedException RuntimeException */ public function testCountShouldThrowExceptionWhenCalledPriorToPreload() { $this->paginatorAdapter->count(); }
/** * {@inheritdoc} */ public function getPaginatorAdapter(ModelStubInterface $model) { $paginator = new RestPaginatorAdapter($model, $this); $paginator->setTotalItemsParamName($this->totalItemsParamName); return $paginator; }