public function LoggerInterfaceTest::testContextExceptionKeyCanBeExceptionOrOtherValues in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::testContextExceptionKeyCanBeExceptionOrOtherValues()
File
- lib/
Psr/ Log/ Test/ LoggerInterfaceTest.php, line 107
Class
- LoggerInterfaceTest
- Provides a base test class for ensuring compliance with the LoggerInterface
Namespace
Psr\Log\TestCode
public function testContextExceptionKeyCanBeExceptionOrOtherValues() {
$this
->getLogger()
->warning('Random message', array(
'exception' => 'oops',
));
$this
->getLogger()
->critical('Uncaught Exception!', array(
'exception' => new \LogicException('Fail'),
));
}