public function LoggerInterfaceTest::testContextExceptionKeyCanBeExceptionOrOtherValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::testContextExceptionKeyCanBeExceptionOrOtherValues()
File
- vendor/
psr/ log/ 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'),
));
}