Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ReftestReference | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\WptHarness; |
| 6 | |
| 7 | /** |
| 8 | * One resolved entry from a reftest's reference list: an on-disk |
| 9 | * path plus the relation the test declared against it. |
| 10 | * |
| 11 | * WPT keeps the same pair — `List[Tuple[ref_url, ref_type]]` from |
| 12 | * `sourcefile.py::references` — and carries it all the way into |
| 13 | * `check_pass`, because a reference means nothing without knowing |
| 14 | * whether the test wants to look like it or unlike it. |
| 15 | */ |
| 16 | final readonly class ReftestReference |
| 17 | { |
| 18 | public function __construct( |
| 19 | public string $path, |
| 20 | public ReferenceRelation $relation, |
| 21 | ) {} |
| 22 | } |