Symfony\Bundle\MonologBundle\Tests\DependencyInjection\MonologExtensionTest::testRavenHandlerWhenAClientIsSpecified PHP Method

testRavenHandlerWhenAClientIsSpecified() public method

    public function testRavenHandlerWhenAClientIsSpecified()
    {
        $container = $this->getContainer(array(array('handlers' => array('raven' => array('type' => 'raven', 'client_id' => 'raven.client')))));
        $this->assertFalse($container->hasDefinition('raven.client'));
        $logger = $container->getDefinition('monolog.logger');
        $this->assertDICDefinitionMethodCallAt(0, $logger, 'useMicrosecondTimestamps', array('%monolog.use_microseconds%'));
        $this->assertDICDefinitionMethodCallAt(1, $logger, 'pushHandler', array(new Reference('monolog.handler.raven')));
        $handler = $container->getDefinition('monolog.handler.raven');
        $this->assertDICConstructorArguments($handler, array(new Reference('raven.client'), 100, true));
    }