/** * @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'])); }
/** * @test */ public function bubblingTest() { $this->logger->getHandler()->isBubbling(true); $this->logger->alert(__FUNCTION__); $this->expectOutputRegex('/' . __FUNCTION__ . '.+' . __FUNCTION__ . '/sm'); }