You are here

public function RequestMatcherTest::testHostFixture in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/RequestMatcherTest.php, line 80

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,
    ),
  );
}