protected function setUp() { $configFilePath = APPLICATION_PATH . '/configs'; $configXml = new Zend_Config_Xml($configFilePath . '/config.xml', 'production'); Zend_Registry::set('config', $configXml); $this->application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini'); $this->bootstrap = array($this, 'appBootstrap'); parent::setUp(); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { parent::setUp(); $this->db = $this->getConnection()->getConnection(); \Zend_Registry::set('db', $this->db); \Zend_Db_Table::setDefaultAdapter($this->db); $settings = new \Zend_Config_Ini(GEMS_ROOT_DIR . '/configs/application.example.ini', APPLICATION_ENV); $sa = $settings->toArray(); $this->loader = new \Gems_Loader(\Zend_Registry::getInstance(), $sa['loaderDirs']); \Zend_Registry::set('loader', $this->loader); }
protected function setUp() { $this->runAutoloadResources(); parent::setUp(); $this->profileTable = new Application_Model_DbTable_Profile(); }
public function tearDown() { $this->resetRequest(); $this->resetResponse(); parent::tearDown(); }
public static function assertDataSetsEqual($dsa, $dsb) { $dsFiltereda = new PHPUnit_Extensions_Database_DataSet_DataSetFilter($dsa); return parent::assertDataSetsEqual($dsa, $dsb); }
/** Teardown. */ public function tearDown() { parent::tearDown(); }
protected function setUp() { $this->application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini'); $this->bootstrap = array($this, 'appBootstrap'); parent::setUp(); }
public function setUp() { parent::setup(); $this->regions = new Region_Table(); }