public function UrlMatcherTest::testWithOutHostHostDoesNotMatch

@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php, line 375

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testWithOutHostHostDoesNotMatch() {
  $coll = new RouteCollection();
  $coll
    ->add('foo', new Route('/foo/{foo}', array(), array(), array(), '{locale}.example.com'));
  $matcher = new UrlMatcher($coll, new RequestContext('', 'GET', 'example.com'));
  $matcher
    ->match('/foo/bar');
}