public function testOverrideExpressionLanguageConfig()
 {
     $loader = new SensioFrameworkExtraExtension();
     $config = array('security' => array('expression_language' => 'acme.security.expression_language'));
     $this->configuration->setDefinition('acme.security.expression_language', new Definition());
     $loader->load(array($config), $this->configuration);
     $this->assertAlias('acme.security.expression_language', 'sensio_framework_extra.security.expression_language');
 }
 public function testTemplatingControllerPatterns()
 {
     $container = new ContainerBuilder();
     $extension = new SensioFrameworkExtraExtension();
     $config = array('templating' => array('controller_patterns' => $patterns = array('/foo/', '/bar/', '/foobar/')));
     $extension->load(array($config), $container);
     $this->assertEquals($patterns, $container->getDefinition('sensio_framework_extra.view.guesser')->getArgument(1));
 }