You are here

public function UrlMatcherTest::testSchemeRequirement in Zircon Profile 8.0

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

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

File

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

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testSchemeRequirement() {
  $coll = new RouteCollection();
  $coll
    ->add('foo', new Route('/foo', array(), array(), array(), '', array(
    'https',
  )));
  $matcher = new UrlMatcher($coll, new RequestContext());
  $matcher
    ->match('/foo');
}