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:
authorrobocoder <anthon.pang@gmail.com>2010-09-13 05:46:21 +0400
committerrobocoder <anthon.pang@gmail.com>2010-09-13 05:46:21 +0400
commit5c5327bb30ebdf86036dcafb720e20f1b1c55423 (patch)
tree5b2fe55c01b53290d37a4aae00e7deacda49a22c /plugins/UserCountry
parente1b04241521f84513471da61c2fbcc8f77b130d2 (diff)
tweaking all the unit tests to also run from the CLI, e.g.,
find plugins -name '*.test.php' -exec php {} \; git-svn-id: http://dev.piwik.org/svn/trunk@3143 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/tests/UserCountry.test.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/UserCountry/tests/UserCountry.test.php b/plugins/UserCountry/tests/UserCountry.test.php
index 78cbeba6af..fa6b743ec5 100644
--- a/plugins/UserCountry/tests/UserCountry.test.php
+++ b/plugins/UserCountry/tests/UserCountry.test.php
@@ -1,10 +1,7 @@
<?php
-if(!defined("PIWIK_PATH_TEST_TO_ROOT")) {
- define('PIWIK_PATH_TEST_TO_ROOT', getcwd().'/../../..');
-}
if(!defined('PIWIK_CONFIG_TEST_INCLUDED'))
{
- require_once PIWIK_PATH_TEST_TO_ROOT . "/tests/config_test.php";
+ require_once dirname(__FILE__)."/../../../tests/config_test.php";
}
require 'UserCountry/functions.php';