Skip to content
This repository
Browse code

Update tests and changelog

  • Loading branch information...
commit 47eb599b4aad36b66e818ed72ebf939e2fb311be 1 parent 9800793
Jordi Boggiano authored
3  CHANGELOG.mdown
Source Rendered
... ... @@ -1,6 +1,7 @@
1   -* 1.3.1 (2013--)
  1 +* 1.3.1 (2013-01-11)
2 2
3 3 * Fixed LogstashFormatter to be usable with stream handlers
  4 + * Fixed GelfMessageFormatter levels on Windows
4 5
5 6 * 1.3.0 (2013-01-08)
6 7
2  tests/Monolog/Formatter/GelfMessageFormatterTest.php
@@ -47,7 +47,7 @@ public function testDefaultFormatter()
47 47 $this->assertEquals('meh', $message->getFacility());
48 48 $this->assertEquals(null, $message->getLine());
49 49 $this->assertEquals(null, $message->getFile());
50   - $this->assertEquals(LOG_ERR, $message->getLevel());
  50 + $this->assertEquals(3, $message->getLevel());
51 51 $this->assertNotEmpty($message->getHost());
52 52
53 53 $formatter = new GelfMessageFormatter('mysystem');
4 tests/Monolog/Handler/GelfHandlerTest.php
@@ -55,7 +55,7 @@ public function testDebug()
55 55 $record = $this->getRecord(Logger::DEBUG, "A test debug message");
56 56 $handler->handle($record);
57 57
58   - $this->assertEquals(LOG_DEBUG, $messagePublisher->lastMessage->getLevel());
  58 + $this->assertEquals(7, $messagePublisher->lastMessage->getLevel());
59 59 $this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
60 60 $this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
61 61 $this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
@@ -69,7 +69,7 @@ public function testWarning()
69 69 $record = $this->getRecord(Logger::WARNING, "A test warning message");
70 70 $handler->handle($record);
71 71
72   - $this->assertEquals(LOG_WARNING, $messagePublisher->lastMessage->getLevel());
  72 + $this->assertEquals(4, $messagePublisher->lastMessage->getLevel());
73 73 $this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
74 74 $this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
75 75 $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.