MDL-77417 behat: behat_error_handler meets deprecation error types
commit9f83c032754ec6028d9c68bb8e3768b644d7aaef
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 27 Feb 2023 08:33:08 +0000 (27 09:33 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 27 Feb 2023 08:39:01 +0000 (27 09:39 +0100)
treeca932ce0df0569bf3ad316f1bba55d1c89a9954c
parent9ebd08c452a4939e58be19e36bb732b5965e5ab6
MDL-77417 behat: behat_error_handler meets deprecation error types

Right now, any E_DEPRECATED, E_USER_DEPRECATED error type leads
to exception in behat runs, because the behat error handled is
not aware of them. See MDL-38041 for the initial implementation.

We don't want that to happen and they must behave like other "low"
error types (notices, warnings...), that will be reported in logs
or output, but won't trigger any exception, so the test can continue.

This commit just adds those 2 "new" error types to the handler,
providing the very same behaviour for them than the rest.
lib/behat/lib.php