Skip to content

Commit 68c7364

Browse files
emillosantixabbuh
authored andcommitted
fix #5487
1 parent e661d98 commit 68c7364

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