/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Helper\Doctype::unsetDoctypeRegistry(); $this->basePath = __DIR__ . '/_files/modules'; $this->view = new View(); $this->helper = new Helper\HeadLink(); $this->helper->setView($this->view); }
/** * @return HeadLink */ public function headLink() { $this->__initialized__ && $this->__initialized__->__invoke(); if (null === $this->headLink) { $this->headLink = new HeadLink(); $this->headLink->setView($this->view); } return $this->headLink; }