public function tokenContext()
 {
     $context = new MappedLogContext();
     $context->put('key1', 'val1');
     $event = new LoggingEvent(new LogCategory('default', LogLevel::ALL, $context), 1258733284, 1, LogLevel::INFO, ['Hello']);
     $this->assertEquals('key1=val1', (new PatternLayout('%x'))->format($event));
 }
 public function context()
 {
     $context = new MappedLogContext();
     $context->put('key1', 'val1');
     $this->assertEquals('key1=val1', $this->format('%x', new LogCategory('default', LogLevel::ALL, $context)));
 }