2010年10月26日星期二

[fw-mvc] Re: Testing exceptions thrown by controllers

pope@shifteleven.com (K. Adam Christensen)
writes:

> If you check Zend_Test_PHPUnit_ControllerTestCase.php, you will see
> that in the dispatch method there (as I am assuming that you're using
> this method and that your test cases extend from this) that said
> method sets throwExceptions to true. That appears to be why your
> settings aren't sticking.

I mean to say that it sets throwExceptions to FALSE in the dispatch
method of the controller test case.

- Adam

没有评论: