Exemple #1
0
 public function testOptionsWithMockAndProcessor()
 {
     $options = array('writers' => array('first_writer' => array('name' => 'mock')), 'processors' => array('first_processor' => array('name' => 'requestid')));
     $logger = new Logger($options);
     $processors = $logger->getProcessors()->toArray();
     $this->assertCount(1, $processors);
     $this->assertInstanceOf('Zend\\Log\\Processor\\RequestId', $processors[0]);
 }