コード例 #1
0
ファイル: HeadLinkTest.php プロジェクト: pnaq57/zf2demo
 /**
  * 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);
 }
コード例 #2
0
ファイル: CommonTestCase.php プロジェクト: pnaq57/zf2demo
 public function setUp()
 {
     Doctype::unsetDoctypeRegistry();
     $this->renderer = new PhpRenderer();
     $helpers = $this->renderer->getHelperPluginManager();
     $config = new HelperConfig();
     $config->configureServiceManager($helpers);
     $this->helper->setView($this->renderer);
 }
コード例 #3
0
ファイル: HeadMetaTest.php プロジェクト: pnaq57/zf2demo
 /**
  * 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);
 }
コード例 #4
0
ファイル: DoctypeTest.php プロジェクト: nieldm/zf2
 /**
  * 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();
 }