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.

Table of Contents

Interfaces

Methods

notify()

Handles the PHPUnit test suite started event.

 : void
Methods

notify()

Public

Handles the PHPUnit test suite started event.

public notify(Started  $event) : void

Description

This method MUST enable BypassFinals for the current test execution context when the test suite starts.

Parameters
$event : Started

Description

the emitted test suite started event