You are here

public function UrlMatcherTest::testWithOutHostHostDoesNotMatch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testWithOutHostHostDoesNotMatch()

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

File

vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php, line 390

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