public function __construct($filename, ILogMessageFormatter $formatter = null, array $filters = array())
 {
     parent::__construct($formatter, $filters);
     $this->filename = $filename;
     $this->handle = @fopen($filename, 'a', false);
     if ($this->handle === false) {
         throw new RuntimeException("Cannot open file '{$filename}' for writing");
     }
 }
 public function testHandle_Unaccepted()
 {
     $this->setFilterAcceptValue(false);
     $this->object->handle($this->log);
     $this->assertThat(count($this->object->logs), $this->equalTo(0));
 }
 public function __construct(array $handlers, array $filters = array())
 {
     parent::__construct(null, $filters);
     $this->handlers = $handlers;
 }