Skip to content

Commit 1103e00

Browse files
committed
Fix mock $matcher
1 parent 6a34332 commit 1103e00

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)