Skip to content
Extraits de code Groupes Projets
Valider 0c5b5ead rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

Speed up unit tests by enabling PHPUnit backupGlobals only for specific tests

parent 7ac6ddb4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -251,7 +251,7 @@ class AssetManagerTest extends PHPUnit_Framework_TestCase ...@@ -251,7 +251,7 @@ class AssetManagerTest extends PHPUnit_Framework_TestCase
{ {
$this->clearDateCache(); $this->clearDateCache();
sleep(1.5); sleep(1);
$modificationDate = $this->mergedAsset->getModificationDate(); $modificationDate = $this->mergedAsset->getModificationDate();
......
...@@ -5,6 +5,8 @@ use Piwik\Filesystem; ...@@ -5,6 +5,8 @@ use Piwik\Filesystem;
/** /**
* Piwik - free/libre analytics platform * Piwik - free/libre analytics platform
* *
* @backupGlobals enabled
*
* @link http://piwik.org * @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
......
...@@ -181,6 +181,9 @@ class PivotByDimensionTest extends PHPUnit_Framework_TestCase ...@@ -181,6 +181,9 @@ class PivotByDimensionTest extends PHPUnit_Framework_TestCase
$this->assertTableRowsEquals($expectedRows, $table); $this->assertTableRowsEquals($expectedRows, $table);
} }
/**
* @backupGlobals enabled
*/
public function test_filter_UsesCorrectSegment_WhenPivotingSegmentedReport() public function test_filter_UsesCorrectSegment_WhenPivotingSegmentedReport()
{ {
$this->loadPlugins('Referrers', 'UserCountry', 'CustomVariables'); $this->loadPlugins('Referrers', 'UserCountry', 'CustomVariables');
......
...@@ -7,6 +7,8 @@ use Piwik\SettingsServer; ...@@ -7,6 +7,8 @@ use Piwik\SettingsServer;
/** /**
* Piwik - free/libre analytics platform * Piwik - free/libre analytics platform
* *
* @backupGlobals enabled
*
* @link http://piwik.org * @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
......
...@@ -5,6 +5,8 @@ use Piwik\Nonce; ...@@ -5,6 +5,8 @@ use Piwik\Nonce;
/** /**
* Piwik - free/libre analytics platform * Piwik - free/libre analytics platform
* *
* @backupGlobals enabled
*
* @link http://piwik.org * @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
......
...@@ -5,6 +5,8 @@ use Piwik\Url; ...@@ -5,6 +5,8 @@ use Piwik\Url;
/** /**
* Piwik - free/libre analytics platform * Piwik - free/libre analytics platform
* *
* @backupGlobals enabled
*
* @link http://piwik.org * @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter