Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update tests and changelog

  • Loading branch information...
commit 47eb599b4aad36b66e818ed72ebf939e2fb311be 1 parent 9800793
@Seldaek authored
View
3  CHANGELOG.mdown
@@ -1,6 +1,7 @@
-* 1.3.1 (2013--)
+* 1.3.1 (2013-01-11)
* Fixed LogstashFormatter to be usable with stream handlers
+ * Fixed GelfMessageFormatter levels on Windows
* 1.3.0 (2013-01-08)
View
2  tests/Monolog/Formatter/GelfMessageFormatterTest.php
@@ -47,7 +47,7 @@ public function testDefaultFormatter()
$this->assertEquals('meh', $message->getFacility());
$this->assertEquals(null, $message->getLine());
$this->assertEquals(null, $message->getFile());
- $this->assertEquals(LOG_ERR, $message->getLevel());
+ $this->assertEquals(3, $message->getLevel());
$this->assertNotEmpty($message->getHost());
$formatter = new GelfMessageFormatter('mysystem');
View
4 tests/Monolog/Handler/GelfHandlerTest.php
@@ -55,7 +55,7 @@ public function testDebug()
$record = $this->getRecord(Logger::DEBUG, "A test debug message");
$handler->handle($record);
- $this->assertEquals(LOG_DEBUG, $messagePublisher->lastMessage->getLevel());
+ $this->assertEquals(7, $messagePublisher->lastMessage->getLevel());
$this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
$this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
$this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
@@ -69,7 +69,7 @@ public function testWarning()
$record = $this->getRecord(Logger::WARNING, "A test warning message");
$handler->handle($record);
- $this->assertEquals(LOG_WARNING, $messagePublisher->lastMessage->getLevel());
+ $this->assertEquals(4, $messagePublisher->lastMessage->getLevel());
$this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
$this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
$this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());

0 comments on commit 47eb599

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