public function setViewPath($viewPath) { $this->viewPath = $viewPath; return $this; }
public function testSetAndGetViewPath() { $c = new Controller(); $c->setViewPath('/admin'); $this->assertEquals('/admin', $c->getViewPath()); $this->assertNull($c->getView()); }