/** (Global) Init test environment. * * Note that test case subclasses should use _setUp(). * * @return void */ public final function setUp() { $this->_initContext(); $this->_assertTestDatabaseConnection(); $this->_assertTestUploadsDir(); $configuration = $this->getApplicationConfiguration(); $this->_fixtureLoader = new Test_FixtureLoader($configuration); $this->_state = new Test_State($configuration); /* Set custom sfConfig values here. */ sfConfig::add(array('sf_fixture_dir' => $this->_fixtureLoader->getFixtureDir(false, $this->_plugin))); $this->_state->flushDatabase($this->_alwaysRebuildDB)->flushUploads()->flushConfigs(); $this->_init(); $this->_setUp(); }