protected function onNotSuccessfulTest(\Exception $e) { if ($e instanceof asserter\exception) { $e = new \PHPUnit_Framework_AssertionFailedError($e->getMessage(), $e->getCode()); } return parent::onNotSuccessfulTest($e); }