lundi 22 décembre 2014

How to clear PHPUnit's setExpectedException?

How do you clear the excepted exception after setting the expectedException like so:



PHPUnit_Framework_TestCase::setExpectedException('Acme\Services\Forms\FormValidationException');


What I want to say to PHPUnit is: don't expect an exception anymore, please fail the test if you encounter one.


Aucun commentaire:

Enregistrer un commentaire