Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/DatabaseTestCase.php')
-rw-r--r--tests/PHPUnit/DatabaseTestCase.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/PHPUnit/DatabaseTestCase.php b/tests/PHPUnit/DatabaseTestCase.php
index 760962e1d5..2b0627f251 100644
--- a/tests/PHPUnit/DatabaseTestCase.php
+++ b/tests/PHPUnit/DatabaseTestCase.php
@@ -8,10 +8,10 @@
/**
* Tests extending DatabaseTestCase are much slower to run: the setUp will
* create all Piwik tables in a freshly empty test database.
- *
- * This allows each test method to start from a clean DB and setup initial state to
+ *
+ * This allows each test method to start from a clean DB and setup initial state to
* then test it.
- *
+ *
*/
class DatabaseTestCase extends PHPUnit_Framework_TestCase
{
@@ -39,12 +39,12 @@ class DatabaseTestCase extends PHPUnit_Framework_TestCase
Piwik::createTables();
Piwik::createLogObject();
- Piwik_PluginsManager::getInstance()->loadPlugins(array());
+ Piwik_PluginsManager::getInstance()->loadPlugins(array());
- } catch(Exception $e) {
- $this->fail("TEST INITIALIZATION FAILED: " .$e->getMessage());
+ } catch (Exception $e) {
+ $this->fail("TEST INITIALIZATION FAILED: " . $e->getMessage());
}
-
+
include "DataFiles/SearchEngines.php";
include "DataFiles/Languages.php";
include "DataFiles/Countries.php";
@@ -60,11 +60,12 @@ class DatabaseTestCase extends PHPUnit_Framework_TestCase
parent::tearDown();
try {
$plugins = Piwik_PluginsManager::getInstance()->getLoadedPlugins();
- foreach($plugins AS $plugin) {
+ foreach ($plugins AS $plugin) {
$plugin->uninstall();
}
Piwik_PluginsManager::getInstance()->unloadPlugins();
- } catch (Exception $e) {}
+ } catch (Exception $e) {
+ }
Piwik::dropDatabase();
Piwik_DataTable_Manager::getInstance()->deleteAll();
Piwik_Option::getInstance()->clearCache();