Skip to content

Commit

Permalink
refs matomo-org#4233 fix log tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Nov 13, 2013
1 parent 1839649 commit 5c8ba40
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/PHPUnit/Integration/Core/LogTest.php
Expand Up @@ -30,9 +30,9 @@ class Core_LogTest extends DatabaseTestCase
'screen' => 'dummy error message<br />
<br />
--&gt; To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in ResponseBuilder.php',
'file' => '[LogTest] LogTest.php(156): dummy error message
'file' => '[Core_LogTest] LogTest.php(161): dummy error message
dummy backtrace',
'database' => '[LogTest] LogTest.php(156): dummy error message
'database' => '[Core_LogTest] LogTest.php(161): dummy error message
dummy backtrace'
);

Expand All @@ -45,9 +45,9 @@ class Core_LogTest extends DatabaseTestCase
<br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
dummy backtrace</div><br />
</pre></div><br />',
'file' => '[LogTest] dummyerrorfile.php(145): Unknown error (102) - dummy error string
'file' => '[Core_LogTest] dummyerrorfile.php(145): Unknown error (102) - dummy error string
dummy backtrace',
'database' => '[LogTest] dummyerrorfile.php(145): Unknown error (102) - dummy error string
'database' => '[Core_LogTest] dummyerrorfile.php(145): Unknown error (102) - dummy error string
dummy backtrace'
);

Expand Down Expand Up @@ -109,7 +109,7 @@ public function testLoggingWorksWhenMessageIsString($backend)
$this->screenOutput = ob_get_contents();
ob_end_clean();

$this->checkBackend($backend, self::TESTMESSAGE, $formatMessage = true, $tag = 'LogTest');
$this->checkBackend($backend, self::TESTMESSAGE, $formatMessage = true, $tag = 'Core_LogTest');
}

/**
Expand All @@ -126,7 +126,7 @@ public function testLoggingWorksWhenMessageIsSprintfString($backend)
$this->screenOutput = ob_get_contents();
ob_end_clean();

$this->checkBackend($backend, sprintf(self::TESTMESSAGE, " subst "), $formatMessage = true, $tag = 'LogTest');
$this->checkBackend($backend, sprintf(self::TESTMESSAGE, " subst "), $formatMessage = true, $tag = 'Core_LogTest');
}

/**
Expand All @@ -144,7 +144,7 @@ public function testLoggingWorksWhenMessageIsError($backend)
$this->screenOutput = ob_get_contents();
ob_end_clean();

$this->checkBackend($backend, self::$expectedErrorOutput[$backend], $formatMessage = false, $tag = 'LogTest');
$this->checkBackend($backend, self::$expectedErrorOutput[$backend], $formatMessage = false, $tag = 'Core_LogTest');
$this->checkBackend('screen', self::$expectedErrorOutput['screen']); // errors should always written to the screen
}

Expand All @@ -163,7 +163,7 @@ public function testLoggingWorksWhenMessageIsException($backend)
$this->screenOutput = ob_get_contents();
ob_end_clean();

$this->checkBackend($backend, self::$expectedExceptionOutput[$backend], $formatMessage = false, $tag = 'LogTest');
$this->checkBackend($backend, self::$expectedExceptionOutput[$backend], $formatMessage = false, $tag = 'Core_LogTest');
$this->checkBackend('screen', self::$expectedExceptionOutput['screen']); // errors should always written to the screen
}

Expand Down

0 comments on commit 5c8ba40

Please sign in to comment.