Exemple #1
0
 /**
  * makes sure a custom logger gets called
  *
  * @author Daniel Sherman
  * @test
  * @depends testConstruct
  * @depends testSetLogger
  * @covers ::logException
  */
 public function testLogExceptionCustom()
 {
     $result = self::$handler->setLogger([new HandlerTestLoggers(), 'echoMethod']);
     $this->assertTrue($result);
     $e = new Exception('', 0);
     $this->expectOutputString('goodBye');
     self::$handler->logException($e);
 }