コード例 #1
0
ファイル: IntegrationTestCase.php プロジェクト: hichnik/piwik
    /**
     * Resets all caches and drops the database
     */
    public function tearDown()
    {
        static::$fixture->clearInMemoryCaches();
        static::$fixture->destroyEnvironment();
        parent::tearDown();
    }
    protected static function configureFixture($fixture)
    {
        $fixture->createSuperUser = false;
        $fixture->configureComponents = false;
    }
    protected static function beforeTableDataCached()
    {
        // empty
    }
    /**
     * Use this method to return custom container configuration that you want to apply for the tests.
     * This configuration will override Fixture config and config specified in SystemTestCase::provideContainerConfig().
     *
     * @return array
     */
    public function provideContainerConfig()
    {
        return array();
    }
}
IntegrationTestCase::$fixture = new Fixture();