public function testHandlerLoader()
{
$dummyClosure = function () {
// Empty function
};
$original = $options = array('class' => 'Monolog\\Handler\\TestHandler', 'level' => 'DEBUG', 'formatter' => 'test_formatter', 'processors' => array('test_processor_1', 'test_processor_2'));
$formatters = array('test_formatter' => new LineFormatter());
$processors = array('test_processor_1' => $dummyClosure, 'test_processor_2' => $dummyClosure);
$loader = new HandlerLoader($options, $formatters, $processors);
$this->assertNotEquals($original, $options);
$this->assertSame($formatters['test_formatter'], $options['formatter']);
$this->assertSame($processors['test_processor_1'], $options['processors'][0]);
$this->assertSame($processors['test_processor_2'], $options['processors'][1]);
}