Exemplo n.º 1
0
 /**
  * @test
  * @depends logRecordTest
  */
 public function logFilterTest()
 {
     $this->logger->pushFilter(function (array $log) {
         $log['extra']['foo'] = true;
         return $log;
     });
     $this->logger->info(__FUNCTION__);
     $lastLog =& $this->logger->getHandler()->lastLog;
     $this->assertTrue(isset($lastLog['extra']['foo']));
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function bubblingTest()
 {
     $this->logger->getHandler()->isBubbling(true);
     $this->logger->alert(__FUNCTION__);
     $this->expectOutputRegex('/' . __FUNCTION__ . '.+' . __FUNCTION__ . '/sm');
 }