コード例 #1
0
ファイル: PaginatorTest.php プロジェクト: heiglandreas/zf2
 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());
     }
 }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
ファイル: PaginatorTest.php プロジェクト: rafalwrzeszcz/zf2
 public function testRenders()
 {
     $this->setExpectedException('Zend\\View\\Exception', 'view partial');
     $this->_paginator->render(new View\PhpRenderer());
 }
コード例 #4
0
 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());
     }
 }