TestDelta
Compares two test-result maps and names what changed, so "it already failed" becomes checkable. Without a baseline, a red suite cannot be attributed: a regression and a pre-existing failure look identical. This pure diff splits the current failures into the ones the baseline already had (unchanged), the ones that are new (a regression this change introduced), and the ones the baseline had that are now gone (resolved). A test present now but absent from the baseline is treated as new if it is failing — a fresh red is a regression regardless of whether the test itself is new.
TestDelta::compare()
public function compare(array $baseline, array $current): arrayDiffs a baseline map against the current map, both `"Class::method" => status`.
Parameters
| Name | Type | Description |
|---|---|---|
| $baseline | array<string, string> | |
| $current | array<string, string> |