Beispiel #1
0
 public function testRequiredContext()
 {
     $this->assertFalse($this->logger->usesRequiredContext());
     $this->logger->enableRequiredContext();
     $this->assertTrue($this->logger->usesRequiredContext());
     $this->logger->disableRequiredContext();
     $this->assertFalse($this->logger->usesRequiredContext());
     $this->logger->setRequiredContext(['bubba' => 'said']);
     $this->assertEquals(['bubba' => 'said'], $this->logger->getRequiredContext());
 }