/**
* @expectedException InvalidArgumentException
*/
public function testResolveProcessorsWithMismatch()
{
$dummyClosure = function () {
// Empty function
};
$options = array('processors' => array('unexisting_processor', 'test_processor_2'));
$processors = array('test_processor_1' => $dummyClosure, 'test_processor_2' => $dummyClosure);
$loader = new LoggerLoader('testLogger', $options, array(), $processors);
// This should throw an InvalidArgumentException
$loader->resolveProcessors($options, $processors);
}