Exemple #1
0
 /**
  * @test
  */
 public function warningTest()
 {
     $str = __FUNCTION__;
     $logger = $this->logger->warning($str);
     $this->expectOutputRegex("/\\[WARNING\\]: {$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__ . '/');
 }
 /**
  * @test
  */
 public function handleTest2()
 {
     $this->logger->log(132, __FUNCTION__);
     $this->expectOutputRegex('/critical.+' . __FUNCTION__ . '.+debug.+' . __FUNCTION__ . '/sm');
 }