public function testDecide()
 {
     $filter = new MyFilter();
     $eventError = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelError(), "testmessage");
     $eventDebug = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelDebug(), "testmessage");
     $eventWarn = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelWarn(), "testmessage");
     $result = $filter->decide($eventError);
     self::assertEquals($result, LoggerFilter::NEUTRAL);
     $result = $filter->decide($eventDebug);
     self::assertEquals($result, LoggerFilter::NEUTRAL);
     $result = $filter->decide($eventWarn);
     self::assertEquals($result, LoggerFilter::NEUTRAL);
 }
 public function testDecide()
 {
     $filter = new MyFilter();
     // activateOptions is empty, but should at least throw no exeception
     $filter->activateOptions();
     $eventError = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelError(), "testmessage");
     $eventDebug = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelDebug(), "testmessage");
     $eventWarn = new LoggerLoggingEvent("LoggerAppenderEchoTest", new Logger("TEST"), LoggerLevel::getLevelWarn(), "testmessage");
     $result = $filter->decide($eventError);
     self::assertEquals($result, LoggerFilter::NEUTRAL);
     $result = $filter->decide($eventDebug);
     self::assertEquals($result, LoggerFilter::NEUTRAL);
     $result = $filter->decide($eventWarn);
     self::assertEquals($result, LoggerFilter::NEUTRAL);
 }
 public function testNoFilter()
 {
     $this->filter->setInput(['test' => 'bar']);
     $actual = $this->filter->getFilter();
     $this->assertEmpty($actual);
 }