Public code API
This reference lists the public Greenlight PHP API.
Use the task guides for workflows and examples. Use these pages for exact signatures and PHPDoc types.
API sections
- Attributes and conditions API. This reference lists the attributes and conditions that control test discovery and execution.
- Configuration API. This reference lists the builders that configure Greenlight runs.
- Artifact API. This reference lists attachment values, retention rules, and attachment operations.
- Coverage API. This reference lists coverage maps and per-file line coverage values.
- Event API. This reference lists the events that plugins and reporters receive during a run.
- Result API. This reference lists test outcomes, diagnostics, failure details, and result values.
- Test contracts API. This reference lists test definitions, policies, and skip signals.
- Expectations API. This reference lists immediate and temporal expectation types.
- Doubles API. This reference lists double factories, argument matchers, captors, and mock plans.
- Sandbox API. This reference lists the sandboxes that isolate temporary test state.
- Harness API. This reference lists harness service and lifecycle contracts.
- Integration fixture API. This reference lists integration fixture definitions, contexts, resources, and sensitive values.
- Plugin API. This reference lists plugin capabilities and lifecycle callback contracts.
- Reporter API. This reference lists reporter and output contracts.
- Integration API. This reference lists public integration types for Hyperf, Laravel, PSR standards, Rector, Symfony, and Tempest.