8000 Preserve percent-encoding in URLs when performing redirects in the UrlMatcher by mpdude · Pull Request #25427 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Preserve percent-encoding in URLs when performing redirects in the UrlMatcher #25427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files. 8000
Loading
Diff view
Diff view
Prev Previous commit
Create mock objects in a cross-version compatible way (?)
  • Loading branch information
mpdude committed Dec 11, 2017
commit 4a22a64f1e73cb1dece350c216373606cd94aa51
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ public function testRedirectPreservesUrlEncoding()

$class = $this->generateDumpedMatcher($collection, true);

$matcher = $this->getMock($class, array('redirect'), array(new RequestContext()));
$matcher = $this->getMockBuilder($class)
->setMethods(array('redirect'))
->setConstructorArgs(array(new RequestContext()))
->getMock();

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

$matcher->match('/foo%3Abar');
Expand Down
0