Example #1
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->markTestSkipped('Skipped until Zend\\Paginator is completed');
     $view = new View\View();
     $view->addBasePath(dirname(__FILE__) . '/_files');
     Helper\PaginationControl::setDefaultViewPartial(null);
     $this->_viewHelper = new Helper\PaginationControl();
     $this->_viewHelper->setView($view);
     $this->_paginator = Paginator\Paginator::factory(range(1, 101));
 }
Example #2
0
 public function testAddBasePathWithClassPrefix()
 {
     $view = new View();
     $base = __DIR__;
     $view->addBasePath($base, 'My\\Foo');
     $this->_testBasePath($view, $base, 'My\\Foo');
 }
Example #3
0
 public function testRendersWithPartial()
 {
     $view = new View\View();
     $view->addBasePath(__DIR__ . '/_files');
     $view->addHelperPath(__DIR__ . '/../../../trunk/library/Zend/View/Helper', 'Zend\\View\\Helper');
     Helper\PaginationControl::setDefaultViewPartial('partial.phtml');
     $this->_paginator->setView($view);
     $string = $this->_paginator->__toString();
     $this->assertEquals('partial rendered successfully', $string);
 }