/**
  * Asserts that the validator provides at least one failure message.
  */
 protected function assertFailureMessage()
 {
     $messages = $this->validator->getMessages();
     $this->assertInternalType('array', $messages);
     $this->assertGreaterThan(0, count($messages));
 }
 /**
  * Returns the allowed hostnames.
  *
  * An empty array the hostname is not restricted.
  *
  * @return array(string)
  */
 public function getAllowedHostnames()
 {
     $suffixes = $this->_hostnameValidator->getSuffixes();
     return $this->toHostnames($suffixes);
 }