public function LegacyApacheUrlMatcherTest::testMatch in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/Matcher/LegacyApacheUrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\LegacyApacheUrlMatcherTest::testMatch()
@dataProvider getMatchData
File
- vendor/
symfony/ routing/ Tests/ Matcher/ LegacyApacheUrlMatcherTest.php, line 38
Class
- LegacyApacheUrlMatcherTest
- @group legacy
Namespace
Symfony\Component\Routing\Tests\MatcherCode
public function testMatch($name, $pathinfo, $server, $expect) {
$collection = new RouteCollection();
$context = new RequestContext();
$matcher = new ApacheUrlMatcher($collection, $context);
$_SERVER = $server;
$result = $matcher
->match($pathinfo);
$this
->assertSame(var_export($expect, true), var_export($result, true));
}