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:
Diffstat (limited to 'tests/PHPUnit/Core/LogTest.php')
-rw-r--r--tests/PHPUnit/Core/LogTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/PHPUnit/Core/LogTest.php b/tests/PHPUnit/Core/LogTest.php
index 607e99fbee..706c8f16a6 100644
--- a/tests/PHPUnit/Core/LogTest.php
+++ b/tests/PHPUnit/Core/LogTest.php
@@ -34,7 +34,7 @@ dummy backtrace'
public static $expectedErrorOutput = array(
'screen' => '
<div style=\'word-wrap: break-word; border: 3px solid red; padding:4px; width:70%; background-color:#FFFF96;\'>
- <strong>There is an error. Please report the message (Piwik 2.0-a7)
+ <strong>There is an error. Please report the message (Piwik 2.0)
and full backtrace in the <a href=\'?module=Proxy&action=redirect&url=http://forum.piwik.org\' target=\'_blank\'>Piwik forums</a> (please do a Search first as it might have been reported already!).<br /><br/>
Unknown error (102):</strong> <em>dummy error string</em> in <strong>dummyerrorfile.php</strong> on line <strong>145</strong>
<br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
@@ -203,6 +203,10 @@ dummy backtrace'
$expectedMessage = sprintf(self::STRING_MESSAGE_FORMAT_SPRINTF, $tag, $expectedMessage);
}
+ // remove version number from message
+ $expectedMessage = str_replace("(Piwik 2.0)", "", $expectedMessage);
+ $this->screenOutput = str_replace("(Piwik ". \Piwik\Version::VERSION.")", "", $this->screenOutput);
+
if ($backend == 'screen') {
if ($formatMessage
&& !Common::isPhpCliMode()) {