Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a65b489

Browse files
committed
Merge branch '2.7' into 2.8
2 parents 945630a + 80182fa commit a65b489

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ public function testDumpWithSchemeRequirement()
125125

126126
$projectUrlGenerator = new \SchemeUrlGenerator(new RequestContext('/app.php'));
127127

128-
$absoluteUrl = $projectUrlGenerator->generate('Test1', array(), true);
129-
$relativeUrl = $projectUrlGenerator->generate('Test1', array(), false);
128+
$absoluteUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_URL);
129+
$relativeUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_PATH);
130130

131131
$this->assertEquals($absoluteUrl, 'ftp://localhost/app.php/testing');
132132
$this->assertEquals($relativeUrl, 'ftp://localhost/app.php/testing');
133133

134134
$projectUrlGenerator = new \SchemeUrlGenerator(new RequestContext('/app.php', 'GET', 'localhost', 'https'));
135135

136-
$absoluteUrl = $projectUrlGenerator->generate('Test1', array(), true);
137-
$relativeUrl = $projectUrlGenerator->generate('Test1', array(), false);
136+
$absoluteUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_URL);
137+
$relativeUrl = $projectUrlGenerator->generate('Test1', array(), UrlGeneratorInterface::ABSOLUTE_PATH);
138138

139139
$this->assertEquals($absoluteUrl, 'https://localhost/app.php/testing');
140140
$this->assertEquals($relativeUrl, '/app.php/testing');

0 commit comments

Comments
 (0)