/** * 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); }
public function setUp() { Doctype::unsetDoctypeRegistry(); $this->renderer = new PhpRenderer(); $helpers = $this->renderer->getHelperPluginManager(); $config = new HelperConfig(); $config->configureServiceManager($helpers); $this->helper->setView($this->renderer); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { $this->error = false; Helper\Doctype::unsetDoctypeRegistry(); $this->basePath = __DIR__ . '/_files/modules'; $this->view = new View(); $this->view->plugin('doctype')->__invoke('XHTML1_STRICT'); $this->helper = new Helper\HeadMeta(); $this->helper->setView($this->view); }
/** * 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->helper = new Helper\Doctype(); }