You are here

public function RequestTest::getHostValidities in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::getHostValidities()

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 1854

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function getHostValidities() {
  return array(
    array(
      '.a',
      false,
    ),
    array(
      'a..',
      false,
    ),
    array(
      'a.',
      true,
    ),
    array(
      "",
      false,
    ),
    array(
      '[::1]',
      true,
    ),
    array(
      '[::1]:80',
      true,
      '[::1]',
      80,
    ),
    array(
      str_repeat('.', 101),
      false,
    ),
  );
}