public function run() { if ($this->_options['database']) { Modela_Core::getInstance()->setDatabase($this->_options['database']); } switch ($this->_action) { case "loadviews": if ($this->_options['viewspath']) { $viewsPath = $this->_options['viewspath']; } else { $viewsPath = realpath(getcwd()); } Modela_View::loadViews($viewsPath); break; } }
public function testGetName() { $view = new Modela_View(); $name = $view->getName(); $this->assertEquals($name, 'modela_view'); }