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()); }
public function tearDown() { $this->errorHandler->unregister(); }