예제 #1
0
 /**
  * {@inheritdoc}
  *
  * Throws an exception containing the formatted message.
  *
  * @param  Match             $match
  * @param  TemplateInterface $template
  * @param  string            $message
  * @return void
  * @throws Exception
  */
 public function respond(Match $match, TemplateInterface $template, $message = '')
 {
     if ($match->isMatch()) {
         return;
     }
     $this->formatter->setMatch($match);
     $message = $message ? $message : $this->formatter->getMessage($template);
     throw new AssertionException($message);
 }