public function UrlGeneratorTest::testPathWithTwoStartingSlashes

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php, line 267

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

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'));
}