@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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.