Let's say that in a unit test I want to use class_alias()
to substitute a fake class for one that would normally be used:
class_alias('MyFakeTestingClass', 'Some\Real\Class\Somewhere');
Is there any way to undo this operation so that Some\Real\Class\Somewhere
can go back to being used normally afterward? This does not work:
class_alias('Some\Real\Class\Somewhere', 'Some\Real\Class\Somewhere');
No.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With