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.
- 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 metadata, skip signals, conditions, and wire contracts.
- Expectations API — This reference lists immediate and temporal expectation types.
- Doubles API — This reference lists double factories, argument matchers, captors, and mock plans.
- Fixtures and harness API — This reference lists fixtures and harness service contracts.
- 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 Laravel, Rector, and Symfony.