You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @expect annotation will be enhanced to provide a means for
also checking the expected exception's message.
Rationale
Ensuring a certain exception message requires the "old-style" approach
with try, fail(); and the checking the message inside catch (ExpectedException $expected), a construct we successfully
removed the need for with @expect years ago.
Functionality
The @expect annotation is currently written as:
@expect([CLASSNAME])
Keeping the old syntax intact, the new form is defined as:
Scope of Change
The
@expect
annotation will be enhanced to provide a means foralso checking the expected exception's message.
Rationale
Ensuring a certain exception message requires the "old-style" approach
with
try
,fail();
and the checking the message insidecatch (ExpectedException $expected)
, a construct we successfullyremoved the need for with
@expect
years ago.Functionality
The
@expect
annotation is currently written as:Keeping the old syntax intact, the new form is defined as:
This test succeeds:
This test fails:
Security considerations
n/a
Speed impact
Negligible
Dependencies
n/a
Related documents
The text was updated successfully, but these errors were encountered: