/** * Create template engine object. * * @param string $template Path to content template file */ public function __construct($template) { $this->_content = $template; $templateEngine = Days_Config::load()->get('view/engine', 'php'); $this->_view = Days_View::factory($templateEngine); }
/** * @covers Day_View::factory */ public function testResultClassName() { $ref = new Days_View_Engine(); $factory_ref = Days_View::factory('engine'); $this->assertTrue($ref == $factory_ref); }