public function UrlMatcherTest::testSchemeRequirement

@expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException

File

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

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

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