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
I faced an issue today. On a code we don't control entirely, the PHP version has been updated. PHP now emits errors for undefined constants. That's expect, everything is normal. However, we can't run the tests anymore because atoum exits before running the tests, as defined here:
set_error_handler(function ($error, $message, $file, $line) use ($autorunner) {
$errorReporting = error_reporting();
if ($errorReporting !== 0 && $errorReporting & $error) {
$autorunner->writeError($message . ' in ' . $file . ' at line ' . $line, $error);
exit(3);
}
});
Maybe it's not a good idea to exit the process directly. Logging a message is enough I think. It's very likely that the errors will be reported by the tests too. In our situation, we prefer to see the tests running, and use reports to see the errors, than not being able to run the tests.
Hello fellow atoum hackers,
I faced an issue today. On a code we don't control entirely, the PHP version has been updated. PHP now emits errors for undefined constants. That's expect, everything is normal. However, we can't run the tests anymore because atoum exits before running the tests, as defined here:
atoum/classes/scripts/runner.php
Lines 691 to 699 in b25d916
Maybe it's not a good idea to exit the process directly. Logging a message is enough I think. It's very likely that the errors will be reported by the tests too. In our situation, we prefer to see the tests running, and use reports to see the errors, than not being able to run the tests.
Thoughts?
cc @jubianchi @Grummfy
The text was updated successfully, but these errors were encountered: