Skip to content
Browse files

Remove references to GelfFormatter

  • Loading branch information...
1 parent 0a63050 commit 8373c8d57a4205e8e26eae76c53bd12c95c16455 @timmow timmow committed Oct 17, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 tests/Monolog/Formatter/LogstashEventFormatterTest.php
View
14 tests/Monolog/Formatter/LogstashEventFormatterTest.php
@@ -18,7 +18,7 @@ class LogstashEventFormatterTest extends \PHPUnit_Framework_TestCase
{
/**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
+ * @covers Monolog\Formatter\LogstashEventFormatter::format
*/
public function testDefaultFormatter()
{
@@ -42,15 +42,15 @@ public function testDefaultFormatter()
$this->assertEquals(Logger::ERROR, $message['@fields']['level']);
$this->assertEquals('test', $message['@source']);
- $formatter = new GelfMessageFormatter('mysystem');
+ $formatter = new LogstashEventFormatter('mysystem');
- $message = $formatter->format($record);
+ $message = json_decode($formatter->format($record), true);
- $this->assertEquals('mysystem', $message->getHost());
+ $this->assertEquals('mysystem', $message['@source']);
}
/**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
+ * @covers Monolog\Formatter\LogstashEventFormatter::format
*/
public function testFormatWithFileAndLine()
{
@@ -72,7 +72,7 @@ public function testFormatWithFileAndLine()
}
/**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
+ * @covers Monolog\Formatter\LogstashEventFormatter::format
*/
public function testFormatWithContext()
{
@@ -108,7 +108,7 @@ public function testFormatWithContext()
}
/**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
+ * @covers Monolog\Formatter\LogstashEventFormatter::format
*/
public function testFormatWithExtra()
{

0 comments on commit 8373c8d

Please sign in to comment.
Something went wrong with that request. Please try again.