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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-31 06:46:27 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-31 06:47:41 +0300
commit1b545d301d8248118243dd21e33a3e1aca285f6c (patch)
treeb63732c6fbd18478aaf03e9605604855883520c3 /plugins/Monolog
parentea59c0ed4a1a25183105097848a71272647bc614 (diff)
Logger test
Diffstat (limited to 'plugins/Monolog')
-rw-r--r--plugins/Monolog/Test/Integration/LogTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Monolog/Test/Integration/LogTest.php b/plugins/Monolog/Test/Integration/LogTest.php
index cf0448a6e8..2975015301 100644
--- a/plugins/Monolog/Test/Integration/LogTest.php
+++ b/plugins/Monolog/Test/Integration/LogTest.php
@@ -187,6 +187,18 @@ class LogTest extends IntegrationTestCase
$this->checkBackend('database', self::TESTMESSAGE, $formatMessage = true, $tag = 'Monolog');
}
+ /**
+ * @dataProvider getBackendsToTest
+ */
+ public function testLoggingNonString($backend)
+ {
+ Config::getInstance()->log['log_writers'] = array($backend);
+
+ Log::warning(123);
+
+ $this->checkBackend($backend, '123', $formatMessage = true, $tag = 'Monolog');
+ }
+
private function checkBackend($backend, $expectedMessage, $formatMessage = false, $tag = false)
{
if ($formatMessage) {