/**
  * @param UnexpectedHttpRequestException[] $errors
  */
 public function __construct(array $errors)
 {
     $message = array_reduce($errors, function ($msg, UnexpectedHttpRequestException $err) {
         $msg .= '; ' . $err->getMessage();
         return $msg;
     }, 'Request does not match any expectation: ');
     parent::__construct($message);
 }
 /**
  * @param string $field
  * @param mixed $actualValue
  * @param mixed $expectedValue
  */
 public function __construct($field, $actualValue, $expectedValue)
 {
     $this->field = $field;
     $this->actualValue = $actualValue;
     $this->expectedValue = $expectedValue;
     $field_pp = self::prettyPrint($field);
     $actual_pp = self::prettyPrint($actualValue);
     $expected_pp = self::prettyPrint($expectedValue);
     $message = "Request `{$field_pp}` does not match expected value. " . "Actual: {$actual_pp}, " . "Expected: {$expected_pp}";
     parent::__construct($message);
 }