|
@@ -188,6 +188,17 @@ class MonologExtensionTest extends TestCase
|
|
|
$this->assertDICConstructorArguments($handler, array('/tmp/last.log', \Monolog\Logger::ERROR, true));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @expectedException InvalidArgumentException
|
|
|
+ */
|
|
|
+ public function testExceptionWhenInvalidHandler()
|
|
|
+ {
|
|
|
+ $container = new ContainerBuilder();
|
|
|
+ $loader = new MonologExtension();
|
|
|
+
|
|
|
+ $loader->load(array(array('handlers' => array('main' => array('type' => 'invalid_handler')))), $container);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
|
|
|
*/
|