Permalink
Browse files

Fix new assertions, refs #16

  • Loading branch information...
1 parent f39f9d6 commit 5144da9525d24346bf009ff28f10cbaa1f0f166e @Seldaek Seldaek committed Dec 5, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 Psr/Log/Test/LoggerInterfaceTest.php
@@ -112,12 +112,13 @@ public function testContextCanContainAnything()
public function testContextExceptionKeyCanBeExceptionOrOtherValues()
{
- $this->getLogger()->warning('Random message', array('exception' => 'oops'));
- $this->getLogger()->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail')));
+ $logger = $this->getLogger();
+ $logger->warning('Random message', array('exception' => 'oops'));
+ $logger->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail')));
$expected = array(
'warning Random message',
- 'Uncaught Exception!'
+ 'critical Uncaught Exception!'
);
$this->assertEquals($expected, $this->getLogs());
}

0 comments on commit 5144da9

Please sign in to comment.