|
@@ -83,6 +83,18 @@ class MonologExtensionTest extends TestCase
|
|
|
$this->assertDICConstructorArguments($handler, array(new Reference('monolog.handler.nested'), \Monolog\Logger::ERROR, 0, false));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
|
|
|
+ */
|
|
|
+ public function testExceptionWhenUsingDebugName()
|
|
|
+ {
|
|
|
+ // logger
|
|
|
+ $container = new ContainerBuilder();
|
|
|
+ $loader = new MonologExtension();
|
|
|
+
|
|
|
+ $loader->load(array(array('handlers' => array('debug' => array('type' => 'stream')))), $container);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Assertion on the Class of a DIC Service Definition.
|
|
|
*
|