Example #1
0
 /**
  * Test flush can be forced.
  */
 public function testFlushCanBeForced()
 {
     $this->logger->info('One');
     $this->logger->debug('Two');
     $this->logger->error('Three');
     $this->assertCount(3, $this->logger->getBuffer());
     $this->logger->flushBuffer(true);
     $this->assertCount(0, $this->logger->getBuffer());
 }