Skip to content

Commit

Permalink
Fix mock $matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 16, 2015
1 parent 6a34332 commit 1103e00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions create_framework/unit-testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ Response::
}
)))
;
$matcher
->expects($this->once())
->method('getContext')
->will($this->returnValue($this->getMock('Symfony\Component\Routing\RequestContext')))
;
$resolver = new ControllerResolver();

$framework = new Framework($matcher, $resolver);
Expand Down

0 comments on commit 1103e00

Please sign in to comment.