|
|
@ -16,6 +16,7 @@ require_once dirname(__FILE__) . '/../../view/helpers/ViewHelper.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../view/helpers/TitleViewHelper.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../view/PHPView.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../exception/GeneralException.php'; |
|
|
|
require_once dirname(__FILE__) . '/../../exception/InitializationException.php'; |
|
|
|
require_once 'vfsStream/vfsStream.php'; |
|
|
|
|
|
|
|
class PHPViewTest extends PHPUnit_Framework_TestCase |
|
|
@ -45,7 +46,7 @@ class PHPViewTest extends PHPUnit_Framework_TestCase |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @expectedException Exception |
|
|
|
* @expectedException InitializationException |
|
|
|
* @expectedExceptionMessage Configuration must have a "path" set. |
|
|
|
*/ |
|
|
|
public function testPHPViewNullConstructor() |
|
|
@ -138,7 +139,7 @@ class PHPViewTest extends PHPUnit_Framework_TestCase |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @expectedException Exception |
|
|
|
* @expectedException InitializationException |
|
|
|
* @expectedExceptionMessage Template |
|
|
|
*/ |
|
|
|
public function testErrorTemplate() |
|
|
|