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 ef4807f

Browse filesBrowse files
committed
bug #5528 [reate_framework] Fix mock $matcher (kenjis)
This PR was merged into the 2.3 branch. Discussion ---------- [reate_framework] Fix mock $matcher We need `getContext` method, otherwise we get: > Fatal error: Call to a member function fromRequest() on a non-object in /Users/kenji/work/framework/src/Simplex/Framework.php on line 24 line 24: ~~~php $this->matcher->getContext()->fromRequest($request); ~~~ Commits ------- 1103e00 Fix mock $matcher
2 parents 29c80ce + 1103e00 commit ef4807f
Copy full SHA for ef4807f

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎create_framework/unit-testing.rst

Copy file name to clipboardExpand all lines: create_framework/unit-testing.rst
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ Response::
157157
}
158158
)))
159159
;
160+
$matcher
161+
->expects($this->once())
162+
->method('getContext')
163+
->will($this->returnValue($this->getMock('Symfony\Component\Routing\RequestContext')))
164+
;
160165
$resolver = new ControllerResolver();
161166

162167
$framework = new Framework($matcher, $resolver);

0 commit comments

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