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:
authormattab <matthieu.aubry@gmail.com>2013-10-01 09:47:33 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-01 09:47:33 +0400
commit444d89d318718ecd5a61df804e1cd398afb6dabf (patch)
tree041bc2b4878a03e8f273d647d26bffdf84a40ab2
parent1ff565834a8cba1178c22fd0f0f99dae6b60f1f1 (diff)
Fix build, remove version number from tested log
-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()) {