From 80182faf0f313e59d91e28e212104fa55b927021 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sun, 18 Oct 2015 22:32:44 +0200 Subject: [PATCH] [Routing] use constant in a test that is new in 2.7 --- .../Tests/Generator/Dumper/PhpGeneratorDumperTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php b/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php index c3b635d9bf..91dbd555f9 100644 --- a/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php @@ -125,16 +125,16 @@ class PhpGeneratorDumperTest extends \PHPUnit_Framework_TestCase $projectUrlGenerator = new \SchemeUrlGenerator(new RequestContext('/app.php')); - $absoluteUrl = $projectUrlGenerator->generate('Test1', array(), true); - $relativeUrl = $projectUrlGenerator->generate('Test1', array(), false); + $absoluteUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_URL); + $relativeUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_PATH); $this->assertEquals($absoluteUrl, 'ftp://localhost/app.php/testing'); $this->assertEquals($relativeUrl, 'ftp://localhost/app.php/testing'); $projectUrlGenerator = new \SchemeUrlGenerator(new RequestContext('/app.php', 'GET', 'localhost', 'https')); - $absoluteUrl = $projectUrlGenerator->generate('Test1', array(), true); - $relativeUrl = $projectUrlGenerator->generate('Test1', array(), false); + $absoluteUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_URL); + $relativeUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_PATH); $this->assertEquals($absoluteUrl, 'https://localhost/app.php/testing'); $this->assertEquals($relativeUrl, '/app.php/testing');