Skip to content

Commit 7a3c153

Browse files
committed
[Routing] use constant in a test that is new in 2.7
1 parent d741795 commit 7a3c153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)