public function ApacheUrlMatcherTest::testMatch

@dataProvider getMatchData

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/ApacheUrlMatcherTest.php, line 35

Class

ApacheUrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testMatch($name, $pathinfo, $server, $expect) {
  $collection = new RouteCollection();
  $context = new RequestContext();
  $matcher = new ApacheUrlMatcher($collection, $context);
  $_SERVER = $server;
  $result = $matcher
    ->match($pathinfo, $server);
  $this
    ->assertSame(var_export($expect, true), var_export($result, true));
}