public function testMapConfig()
{
$parsers = array($this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\DependencyInjection\\Configuration\\ParserInterface'), $this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\DependencyInjection\\Configuration\\ParserInterface'));
$configParser = new ConfigParser($parsers);
$scopeSettings = array('foo' => 'bar', 'some' => 'thing');
$currentScope = 'the_current_scope';
$contextualizer = $this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\DependencyInjection\\Configuration\\SiteAccessAware\\ContextualizerInterface');
foreach ($parsers as $parser) {
/* @var \PHPUnit_Framework_MockObject_MockObject $parser */
$parser->expects($this->once())->method('mapConfig')->with($scopeSettings, $currentScope, $contextualizer);
}
$configParser->mapConfig($scopeSettings, $currentScope, $contextualizer);
}