Pipe and chain
Verification
Reference comparisons
Specifications
On this page
Export
Scope
Specifications, and files written, from the pipe-operator and method-chain versions of every documentation example, example-page script, and the dashboard.
References
- Reference
- Method-chain versions, on the same PHP version
Data
- Inputs
- docs/examples/*.chain.php, docs/examples/scripts/*.chain.php, and examples/dashboard.chain.php.
Method
scripts/evidence-tests.php runs the Pest suite and records each test that builds both versions and compares them. Example-page scripts run in an empty directory, and their written files are compared byte for byte.
- Check
- Expected values and invariants of the package
- Recorded
- 2026-11-02, PHP 8.5.11, Debian GNU/Linux 13 (trixie) (aarch64), commit b9272c6
Tolerances
exact equality
Applies to: Specifications and written files
x: package value; r: reference value.
Results
8 comparisons in 3 cases: 8 pass, 0 fail, 0 skipped.
By case
| Case | Comparisons | Status |
|---|---|---|
| ChainExamplesTest | 2 | pass |
| DashboardTest | 4 | pass |
| PipeTest | 2 | pass |
Every comparison
| Case | Quantity | Criterion | Values | Status |
|---|---|---|---|---|
| ChainExamplesTest | builds a valid spec for every method-chain documentation example | exact equality | 1 | pass |
| builds the dashboard with method chains | exact equality | 1 | pass | |
| DashboardTest | builds the dashboard charts from phplyr summaries of a phibble table | exact equality | 1 | pass |
| builds the same dashboard with pipes and with method chains | exact equality | 1 | pass | |
| builds the same documentation examples with pipes and with method chains | exact equality | 1 | pass | |
| runs each example-page script and its method-chain version to the same chart and files | exact equality | 3 | pass | |
| PipeTest | composes with the pipe operator | exact equality | 1 | pass |
| starts a piped plot with ggplot() and aes() | exact equality | 1 | pass |
Limitations
Exclusions
- The pipe operator requires PHP 8.5; tests/Pipes runs only on PHP 8.5.
Reproduction
composer install
php scripts/evidence-tests.php
- Raw record
- site/verifications/pipe-chain-equivalence.json
- Full results
- scripts/evidence-tests.php