public function UrlGeneratorTest::testPathWithTwoStartingSlashes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php \Symfony\Component\Routing\Tests\Generator\UrlGeneratorTest::testPathWithTwoStartingSlashes()
File
- vendor/
symfony/ routing/ Tests/ Generator/ UrlGeneratorTest.php, line 269
Class
Namespace
Symfony\Component\Routing\Tests\GeneratorCode
public function testPathWithTwoStartingSlashes() {
$routes = $this
->getRoutes('test', new Route('//path-and-not-domain'));
// this must not generate '//path-and-not-domain' because that would be a network path
$this
->assertSame('/path-and-not-domain', $this
->getGenerator($routes, array(
'BaseUrl' => '',
))
->generate('test'));
}