diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-31 06:46:27 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-31 06:47:41 +0300 |
commit | 1b545d301d8248118243dd21e33a3e1aca285f6c (patch) | |
tree | b63732c6fbd18478aaf03e9605604855883520c3 /plugins/Monolog | |
parent | ea59c0ed4a1a25183105097848a71272647bc614 (diff) |
Logger test
Diffstat (limited to 'plugins/Monolog')
-rw-r--r-- | plugins/Monolog/Test/Integration/LogTest.php | 12 |
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) { |