Redefine Native Functions

no-email (Damien Seguy), Damien Seguy
Wed, 17 Jan 2024 00:00:00 +0000

It is possible to redefine PHP functions or constants, or even any defined of such, by using the ``use`` command.
This feature is interesting for testing purposes: it allows the replacement of a defined function with an alternative.
It is not possible to do this twice in the same file, nor to redefine classes.