public function RequestMatcherTest::testHostFixture

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestMatcherTest.php, line 61

Class

RequestMatcherTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testHostFixture() {
  return array(
    array(
      '.*\\.example\\.com',
      true,
    ),
    array(
      '\\.example\\.com$',
      true,
    ),
    array(
      '^.*\\.example\\.com$',
      true,
    ),
    array(
      '.*\\.sensio\\.com',
      false,
    ),
    array(
      '.*\\.example\\.COM',
      true,
    ),
    array(
      '\\.example\\.COM$',
      true,
    ),
    array(
      '^.*\\.example\\.COM$',
      true,
    ),
    array(
      '.*\\.sensio\\.COM',
      false,
    ),
  );
}