/**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $view = new View();
     $view->resolver()->addPath(__DIR__ . '/_files/scripts');
     Helper\PaginationControl::setDefaultViewPartial(null);
     $this->_viewHelper = new Helper\PaginationControl();
     $this->_viewHelper->setView($view);
     $this->_paginator = Paginator\Paginator::factory(range(1, 101));
 }
Exemple #2
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));
 }
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $resolver = new Resolver\TemplatePathStack(array('script_paths' => array(__DIR__ . '/_files/scripts')));
     $view = new View();
     $view->setResolver($resolver);
     Helper\PaginationControl::setDefaultViewPartial(null);
     $this->_viewHelper = new Helper\PaginationControl();
     $this->_viewHelper->setView($view);
     $this->_paginator = Paginator\Paginator::factory(range(1, 101));
 }
 public function testGetsAndSetsView()
 {
     $view = new Zend_View();
     $helper = new Zend_View_Helper_PaginationControl();
     $this->assertNull($helper->view);
     $helper->setView($view);
     $this->assertType('Zend_View_Interface', $helper->view);
 }