Esempio n. 1
0
 function testItCanAddLoggers()
 {
     $collection = new LoggerCollection();
     $this->assertEmpty($collection->getLoggers());
     $collection->addLogger(new WpdbLogger());
     $this->assertContainsOnlyInstancesOf(WpdbLogger::class, $collection->getLoggers());
 }