Exemplo n.º 1
0
 public function testSetScrollingStylePluginManagerWithAdapterThrowsInvalidArgumentException()
 {
     $this->setExpectedException('Zend\\Paginator\\Exception\\InvalidArgumentException', 'Pagination scrolling-style manager must extend ScrollingStylePluginManager; received "stdClass"');
     $this->paginator->setScrollingStylePluginManager(new stdClass());
 }
Exemplo n.º 2
0
 protected function _restorePaginatorDefaults()
 {
     $this->_paginator->setItemCountPerPage(10);
     $this->_paginator->setCurrentPageNumber(1);
     $this->_paginator->setPageRange(10);
     $this->_paginator->setView();
     Paginator\Paginator::setDefaultScrollingStyle();
     Helper\PaginationControl::setDefaultViewPartial(null);
     Paginator\Paginator::setOptions($this->_config->default);
     Paginator\Paginator::setScrollingStylePluginManager(new Paginator\ScrollingStylePluginManager());
     $this->_paginator->setCacheEnabled(true);
 }