/** * Override to run the test and assert its state. * @return mixed * @throws \Exception * @throws \PHPUnit_Framework_IncompleteTest * @throws \PHPUnit_Framework_SkippedTest */ protected function runTest() { try { return parent::runTest(); } catch (PEAR_Exception $e) { // PEAR_Exception has metadata in funny places, and PHPUnit won't log it nicely throw new Exception(\CRM_Core_Error::formatTextException($e), $e->getCode()); } }