From 0c30892efa3d747d4226867cf6ad6ceb6fc51b18 Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Fri, 11 Sep 2015 11:31:30 +1200 Subject: [PATCH] Message to help developers who may have misconfigured piwik while running tests --- tests/PHPUnit/Framework/Fixture.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/PHPUnit/Framework/Fixture.php b/tests/PHPUnit/Framework/Fixture.php index c8cb6d6783..e2e1890fc9 100644 --- a/tests/PHPUnit/Framework/Fixture.php +++ b/tests/PHPUnit/Framework/Fixture.php @@ -464,6 +464,10 @@ class Fixture extends \PHPUnit_Framework_Assert $piwikUrl = Config::getInstance()->tests['http_host']; $piwikUri = Config::getInstance()->tests['request_uri']; + if($piwikUri == '@REQUEST_URI@') { + throw new Exception("Piwik is mis-configured. Remove (or fix) the 'request_uri' entry below [tests] section in your config.ini.php. "); + } + if (strpos($piwikUrl, 'http://') !== 0) { $piwikUrl = 'http://' . $piwikUrl . '/'; } -- GitLab