コード例 #1
0
 public function testExceptionHandler()
 {
     $this->assertEquals(0, $this->errorHandler->getStats()->getExceptionsHandled());
     $this->errorHandler->register(false, true, false);
     $this->errorHandler->handleException(new \Exception('test'));
     $this->errorHandler->unregister();
     $this->assertEquals(1, $this->errorHandler->getStats()->getExceptionsHandled());
 }
コード例 #2
0
 public function tearDown()
 {
     $this->errorHandler->unregister();
 }