Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c67741

Browse filesBrowse files
[Routing] Fix tests
1 parent 1e1b85c commit 3c67741
Copy full SHA for 3c67741

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testRedirectPreservesUrlEncoding()
7676
->setConstructorArgs(array(new RequestContext()))
7777
->getMock();
7878

79-
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo');
79+
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo')->willReturn(array());
8080

8181
$matcher->match('/foo%3Abar');
8282
}

‎src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testRedirectPreservesUrlEncoding()
105105
$coll->add('foo', new Route('/foo:bar/'));
106106

107107
$matcher = $this->getMockForAbstractClass('Symfony\Component\Routing\Matcher\RedirectableUrlMatcher', array($coll, new RequestContext()));
108-
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/');
108+
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/')->willReturn(array());
109109
$matcher->match('/foo%3Abar');
110110
}
111111
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.