ByPassfinalsStartedSubscriber
Class
implements
StartedSubscriber
Final:
Yes
Enables BypassFinals when the PHPUnit test suite starts.
Description
This subscriber MUST activate BypassFinals as soon as the test suite start event is emitted so that final classes, final methods, and readonly protections can be bypassed where the test environment requires that behavior.
This subscriber SHALL perform only the activation side effect associated with the test suite start event.
Interfaces
Methods
notify()
: void
Handles the PHPUnit test suite started event.