Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitef4807f

Browse files
committed
bug#5528 [reate_framework] Fix mock $matcher (kenjis)
This PR was merged into the 2.3 branch.Discussion----------[reate_framework] Fix mock $matcherWe 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 24line 24:~~~php$this->matcher->getContext()->fromRequest($request);~~~Commits-------1103e00 Fix mock $matcher
2 parents29c80ce +1103e00 commitef4807f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎create_framework/unit-testing.rst‎

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp