/** * @test */ public function alertTest() { $str = __FUNCTION__; $logger = $this->logger->alert($str); $this->expectOutputRegex("/\\[ALERT\\]: {$str}/"); $this->assertTrue($logger === $this->logger); }
/** * @test */ public function bubblingTest() { $this->logger->getHandler()->isBubbling(true); $this->logger->alert(__FUNCTION__); $this->expectOutputRegex('/' . __FUNCTION__ . '.+' . __FUNCTION__ . '/sm'); }
/** * @test */ public function handleTest() { $this->logger->alert(__FUNCTION__); $this->expectOutputRegex('/' . __FUNCTION__ . '/'); }