Skip to content
Extraits de code Groupes Projets
Valider 444d89d3 rédigé par mattab's avatar mattab
Parcourir les fichiers

Fix build, remove version number from tested log

parent 1ff56583
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -34,7 +34,7 @@ dummy backtrace' ...@@ -34,7 +34,7 @@ dummy backtrace'
public static $expectedErrorOutput = array( public static $expectedErrorOutput = array(
'screen' => ' 'screen' => '
<div style=\'word-wrap: break-word; border: 3px solid red; padding:4px; width:70%; background-color:#FFFF96;\'> <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/> 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> 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 /> <br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
...@@ -203,6 +203,10 @@ dummy backtrace' ...@@ -203,6 +203,10 @@ dummy backtrace'
$expectedMessage = sprintf(self::STRING_MESSAGE_FORMAT_SPRINTF, $tag, $expectedMessage); $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 ($backend == 'screen') {
if ($formatMessage if ($formatMessage
&& !Common::isPhpCliMode()) { && !Common::isPhpCliMode()) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter