Skip to content

Commit

Permalink
bug #5488 fix #5487 (emillosanti)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xabbuh committed Jul 7, 2015
2 parents e661d98 + 68c7364 commit 5624ed7
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 @@ -96,6 +96,11 @@ We are now ready to write our first test::
->method('match')
->will($this->throwException($exception))
;
$matcher
->expects($this->once())
->method('getContext')
->will($this->returnValue($this->getMock('Symfony\Component\Routing\RequestContext')))
;
$resolver = $this->getMock('Symfony\Component\HttpKernel\Controller\ControllerResolverInterface');

return new Framework($matcher, $resolver);
Expand Down

0 comments on commit 5624ed7

Please sign in to comment.