From 501aca42b924fb51c73a9403c90438da4c2f9233 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 16 Oct 2014 15:58:37 +0200 Subject: [PATCH] Logger: Fix the StreamWriterTest --- .../php/library/Icinga/Logger/Writer/StreamWriterTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/php/library/Icinga/Logger/Writer/StreamWriterTest.php b/test/php/library/Icinga/Logger/Writer/StreamWriterTest.php index f20191418..11fec9740 100644 --- a/test/php/library/Icinga/Logger/Writer/StreamWriterTest.php +++ b/test/php/library/Icinga/Logger/Writer/StreamWriterTest.php @@ -9,7 +9,7 @@ use Icinga\Logger\Logger; use Icinga\Test\BaseTestCase; use Icinga\Logger\Writer\FileWriter; -class LoggerTest extends BaseTestCase +class StreamWriterTest extends BaseTestCase { public function setUp() { @@ -27,7 +27,7 @@ class LoggerTest extends BaseTestCase public function testWhetherStreamWriterCreatesMissingFiles() { - new FileWriter(new Zend_Config(array('target' => $this->target))); + new FileWriter(new Zend_Config(array('file' => $this->target))); $this->assertFileExists($this->target, 'StreamWriter does not create missing files on initialization'); } @@ -36,8 +36,8 @@ class LoggerTest extends BaseTestCase */ public function testWhetherStreamWriterWritesMessages() { - $writer = new FileWriter(new Zend_Config(array('target' => $this->target))); - $writer->log(Logger::$ERROR, 'This is a test error'); + $writer = new FileWriter(new Zend_Config(array('file' => $this->target))); + $writer->log(Logger::ERROR, 'This is a test error'); $log = file_get_contents($this->target); $this->assertContains('This is a test error', $log, 'StreamWriter does not write log messages'); }