Skip to content
Extraits de code Groupes Projets
Valider 86d06def rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Updating UI test module and add auxilliary catch statement to proxy piwik.php.

parent a53ac550
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Subproject commit cb369e4347ba46e57841104cd81d9bc4cedfdc66
Subproject commit 68f577b4ad31b18208c6b78c179eab3148288a22
......@@ -20,15 +20,20 @@ require realpath(dirname(__FILE__)) . "/includes.php";
// calling us waits for the full request to process before unblocking
ob_start();
Piwik_TestingEnvironment::addHooks();
try {
Piwik_TestingEnvironment::addHooks();
GeoIp::$geoIPDatabaseDir = 'tests/lib/geoip-files';
GeoIp::$geoIPDatabaseDir = 'tests/lib/geoip-files';
Tracker::setTestEnvironment();
Manager::getInstance()->deleteAll();
Option::clearCache();
Site::clearCache();
Cache::deleteTrackerCache();
Tracker::setTestEnvironment();
Manager::getInstance()->deleteAll();
Option::clearCache();
Site::clearCache();
Cache::deleteTrackerCache();
include PIWIK_INCLUDE_PATH . '/piwik.php';
} catch (Exception $ex) {
echo "Unexpected error during tracking: " . $ex->getTraceAsString() . "\n";
}
include PIWIK_INCLUDE_PATH . '/piwik.php';
ob_end_flush();
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