public function UrlMatcherTest::testHeadAllowedWhenRequirementContainsGet

File

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

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

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