@expectedException

@expectedException

Example 2.10 shows how to use the @expectedException annotation to test whether an exception is thrown inside the tested code.

See the section called “Testing Exceptions” for more details.

doc_PHPUnit
2016-10-16 15:37:30
Comments
Leave a Comment

Please login to continue.