diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-26 22:12:47 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-02 01:05:27 +0300 |
commit | 86738409ae2ad93675fbdd6741ca82f4ec6212b6 (patch) | |
tree | f66f2bfce0fe5fe33d2a4adbb063503328f6af52 /misc | |
parent | 17f61e3137ff7e420d75e283b705121e4731cce7 (diff) |
Rename Piwik_TestingEnvironment to TestingEnvironment and move the class to Piwik\Tests\Framework namespace. Remove manual require statements.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/updatetoken.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php index 35de7ea36b..644dc3a72b 100644 --- a/misc/cron/updatetoken.php +++ b/misc/cron/updatetoken.php @@ -33,11 +33,9 @@ if (!Common::isPhpCliMode()) { $testmode = in_array('--testmode', $_SERVER['argv']); if ($testmode) { - require_once PIWIK_INCLUDE_PATH . "/tests/PHPUnit/TestingEnvironment.php"; - \Piwik_TestingEnvironment::addHooks(); + Tests\Framework\TestingEnvironment::addHooks(); } - function getPiwikDomain() { foreach($_SERVER['argv'] as $param) { |