Skip to content

Commit 5624ed7

Browse files
committed
bug #5488 fix #5487 (emillosanti)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5488). Discussion ---------- fix #5487 Commits ------- 68c7364 fix #5487
2 parents e661d98 + 68c7364 commit 5624ed7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

create_framework/unit-testing.rst

+5
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ We are now ready to write our first test::
9696
->method('match')
9797
->will($this->throwException($exception))
9898
;
99+
$matcher
100+
->expects($this->once())
101+
->method('getContext')
102+
->will($this->returnValue($this->getMock('Symfony\Component\Routing\RequestContext')))
103+
;
99104
$resolver = $this->getMock('Symfony\Component\HttpKernel\Controller\ControllerResolverInterface');
100105

101106
return new Framework($matcher, $resolver);

0 commit comments

Comments
 (0)