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
A new check will be introduced to the unittest.TestCase class that will assert
that no PHP notices have been produced while running a test.
Rationale
PHP notices often indicate some kind of defect in a software which is
not critical at first glance but can have a hidden impact whose source
then is hard to spot.
A recent test-run revealed some (real) bugs in XP core packages that went
unnoticed until now and which were found by checking the error stack.
Functionality
A new check will be performed after each test method run.
Note
Checks on the error registry are only performed when a test case does not
throw an exception.
Scope of Change
A new check will be introduced to the unittest.TestCase class that will assert
that no PHP notices have been produced while running a test.
Rationale
PHP notices often indicate some kind of defect in a software which is
not critical at first glance but can have a hidden impact whose source
then is hard to spot.
A recent test-run revealed some (real) bugs in XP core packages that went
unnoticed until now and which were found by checking the error stack.
Functionality
A new check will be performed after each test method run.
Note
Consider this:
is thrown. A unittest will test for this behaviour using @expect e.g.
read the EXIF data.
in the above example.
Security considerations
n/a
Speed impact
n/a
Dependencies
n/a
Related documents
Implementing patch
The text was updated successfully, but these errors were encountered: