Exemple #1
0
 public function testRenders()
 {
     try {
         $this->_paginator->render(new View\View());
     } catch (\Exception $e) {
         $this->assertType('Zend\\View\\Exception', $e);
         $this->assertEquals('No view partial provided and no default set', $e->getMessage());
     }
 }
 public function testRender()
 {
     $this->_restorePaginatorDefaults();
     try {
         $this->_paginator->render(new Zend_View());
     } catch (Exception $e) {
         $this->assertType('Zend_View_Exception', $e);
         $this->assertEquals('No view partial provided and no default view partial set', $e->getMessage());
     }
 }
Exemple #3
0
 public function testRenders()
 {
     $this->setExpectedException('Zend\\View\\Exception', 'view partial');
     $this->_paginator->render(new View\PhpRenderer());
 }
 public function testRenders()
 {
     try {
         $this->_paginator->render(new Zend_View());
     } catch (Exception $e) {
         $this->assertTrue($e instanceof Zend_View_Exception);
         $this->assertEquals('No view partial provided and no default set', $e->getMessage());
     }
 }