/** * Setup before each test */ protected function setUp() { parent::setUp(); $this->_cms = Cms::getInstance(); $dumper = new PimpleDumper(); $this->_cms->register($dumper); $this->helper = new Helper(); }
protected function setUp() { parent::setUp(); if (!class_exists('\\JBZoo\\Utils\\FS')) { throw new Exception('jbzoo/utils required for CovCatcher unit-tests'); } FS::rmdir(PROJECT_BUILD . '/coverage_cov'); FS::rmdir(PROJECT_BUILD . '/coverage_html'); FS::rmdir(PROJECT_BUILD . '/coverage_xml'); }
protected function setUp() { parent::setUp(); if (!class_exists('\\JBZoo\\Utils\\Sys')) { throw new Exception('jbzoo/utils required for HttpServer unit-tests'); } if (!class_exists('\\JBZoo\\HttpClient\\HttpClient')) { throw new Exception('jbzoo/http-client required for HttpServer unit-tests'); } if (Sys::isPHP53() || Sys::isHHVM()) { skip('PHP 5.3.x/7.0/hhvm doen\'t support built-in web-server'); } FS::rmdir(PROJECT_BUILD . '/coverage_cov'); FS::rmdir(PROJECT_BUILD . '/coverage_html'); FS::rmdir(PROJECT_BUILD . '/coverage_xml'); }
/** * Tear down data. * * @return void */ public function tearDown() { parent::tearDown(); unset($this->html, $this->input); }
/** * Setup test data. * * @return void */ public function setUp() { parent::setUp(); $this->html = Html::getInstance(); $this->checkbox = $this->html->_('checkbox'); }
/** * @throws \Exception */ public function setUp() { parent::setUp(); //@codeCoverageIgnoreStart if (!$this->_packageName) { throw new Exception('$this->_packageName is undefined!'); } //@codeCoverageIgnoreEnd $this->_replace = array('_LINK_' => $this->_packageLink, '_NAMESPACE_' => '_VENDOR_\\_PACKAGE_', '_COPYRIGHTS_' => $this->_packageCopyright, '_PACKAGE_' => $this->_packageName, '_LICENSE_' => $this->_packageLicense, '_AUTHOR_' => $this->_packageAuthor, '_VENDOR_' => $this->_packageVendor, '_DESCRIPTION_PHP_' => implode($this->_le . ' * ', $this->_packageDesc), '_DESCRIPTION_JS_' => implode($this->_le . ' * ', $this->_packageDesc), '_DESCRIPTION_CSS_' => implode($this->_le . ' * ', $this->_packageDesc), '_DESCRIPTION_LESS_' => implode($this->_le . '// ', $this->_packageDesc), '_DESCRIPTION_XML_' => implode($this->_le . ' ', $this->_packageDesc), '_DESCRIPTION_INI_' => implode($this->_le . '; ', $this->_packageDesc), '_DESCRIPTION_SH_' => implode($this->_le . '# ', $this->_packageDesc), '_DESCRIPTION_SQL_' => implode($this->_le . '-- ', $this->_packageDesc), '_DESCRIPTION_HTACCESS_' => implode($this->_le . '# ', $this->_packageDesc)); }
/** * Setup test data. * * @return void */ public function setUp() { parent::setUp(); $this->html = Html::getInstance(); $this->select = $this->html->_('select'); }
/** * Setup test data. * * @return void */ public function setUp() { parent::setUp(); $this->html = Html::getInstance(); $this->input = $this->html->_('Input'); }
/** * Setup test data. * * @return void */ public function setUp() { parent::setUp(); $this->html = Html::getInstance(); $this->radio = $this->html->_('radio'); }
/** * Setup test data. * * @return void */ public function setUp() { parent::setUp(); $this->html = Html::getInstance(); $this->hidden = $this->html->_('hidden'); }