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);
 }
示例#3
0
 protected function setUp()
 {
     $this->runAutoloadResources();
     parent::setUp();
     $this->profileTable = new Application_Model_DbTable_Profile();
 }
示例#4
0
 public function tearDown() {
     $this->resetRequest();
     $this->resetResponse();
     parent::tearDown();
 }
示例#5
0
 public static function assertDataSetsEqual($dsa, $dsb)
 {
     $dsFiltereda = new PHPUnit_Extensions_Database_DataSet_DataSetFilter($dsa);
     return parent::assertDataSetsEqual($dsa, $dsb);
 }
示例#6
0
 /** Teardown. */
 public function tearDown()
 {
     parent::tearDown();
 }
示例#7
0
 protected function setUp()
 {
     $this->application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
     $this->bootstrap = array($this, 'appBootstrap');
     parent::setUp();
 }
示例#8
0
 public function setUp()
 {
     parent::setup();
     $this->regions = new Region_Table();
 }