/**
  * Collects assertions performed by Hamcrest matchers during the test.
  *
  * @throws Exception
  */
 public function runBare()
 {
     MatcherAssert::resetCount();
     try {
         parent::runBare();
     } catch (\Exception $exception) {
         // rethrown below
     }
     $this->addToAssertionCount(MatcherAssert::getCount());
     if (isset($exception)) {
         throw $exception;
     }
 }