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

index.php « proxy « PHPUnit « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 527fd76833c002bf48fe9677ddaa3fdf57b9f2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Proxy to index.php, but will use the Test DB
 * Used by tests/PHPUnit/Integration/ImportLogsTest.php and tests/PHPUnit/Integration/UITest.php
 */

require realpath(dirname(__FILE__)) . "/includes.php";

Piwik_TestingEnvironment::addHooks();

try {
    \Piwik\ViewDataTable\Manager::clearAllViewDataTableParameters();
} catch(Exception $e) {
    // eg. Piwik not installed yet
}

\Piwik\Profiler::setupProfilerXHProf();

include PIWIK_INCLUDE_PATH . '/index.php';