Esempio n. 1
0
 public function testLoadsFromConfig()
 {
     Paginator\Paginator::setConfig($this->_config->testing);
     $this->assertEquals('Scrolling', Paginator\Paginator::getDefaultScrollingStyle());
     $broker = Paginator\Paginator::getScrollingStyleBroker();
     $this->assertInstanceOf('ZendTest\\Paginator\\TestAsset\\ScrollingStyleBroker', $broker);
     $broker = Paginator\Paginator::getAdapterBroker();
     $this->assertInstanceOf('ZendTest\\Paginator\\TestAsset\\AdapterBroker', $broker);
     $paginator = Paginator\Paginator::factory(range(1, 101));
     $this->assertEquals(3, $paginator->getItemCountPerPage());
     $this->assertEquals(7, $paginator->getPageRange());
 }