classTestReference
final class TestReference
A test linked to a specification: the configured runner and the target it runs.
Properties§
public string $runnerpublic string $targetpublic string $run = 'auto'Methods§
public function __construct(
public string $runner,
public string $target,
public string $run = 'auto',
)Parameters
$runner | string | The name of a configured runner |
$target | string | The test selection passed to that runner |
$run | string | Whether the test runs automatically or only with --all |
Throws
InvalidInputException When the execution policy is unknownCalls 2
- function-call
in_arrayline 27 - new InvalidInputException line 28
public static function from(mixed $value): selfReads a tests entry of a definition.
Parameters
$value | mixed | The decoded tests entry |
Returns
self The test referenceThrows
InvalidInputException When the entry has unknown fields or lacks a runner or targetTest cases 3
Called from 1
Calls 4
- static-call Fields::mapping() line 43
- static-call Fields::keys() line 44
- new
selfline 45 - static-call Fields::text() line 45
Test cases 24§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 21
LinkValidatorTest::testValidateAcceptsResolvedLinkscallsLinkValidatorTest::testValidateRejectsRunnerNamedByExtensioncallsLinkValidatorTest::testValidateRejectsUnknownRunnercallsLoaderTestcallsExecutorTestcallsItemTest::testFromReadsEveryFieldcallsItemValidatorTest::providerDispositionAcceptsItemscallsItemValidatorTest::providerDispositionRejectsItemscallsItemValidatorTest::providerValidateAcceptsItemscallsTargetResultsTest::testSummarizeDistinguishesFailureDeferralAndExecutedCasescallsTestExecutionTest::testRunDeduplicatesEligibleTargetsAndNeverRunsUnsupportedItemscallsVerifierTest::testVerifyDefersManualTargetsUnlessAllIsRequestedcallsVerifierTest::testVerifyFailsWhenAnyTargetFailscallsVerifierTest::testVerifyPassesWhenEveryTargetPassescallsVerifierTest::testVerifyRejectsAnUnknownRunnerExtensioncallsVerifierTest::testVerifyReportsLinkedTargetsAsNotRunWithoutTestscallsVerifierTest::testVerifyReportsRequirementsAsNotApplicableWithoutRunningThemcallsVerifierTest::testVerifyReportsUnsupportedSpecificationsWithoutRunningThemcallsVerifierTest::testVerifyRunsASharedTargetOncecallsVerifierTest::testVerifyRunsTheSameTargetOfDifferentRunnersSeparatelycallsVerifierTest::testVerifySharesAnAutomaticResultWithAnEarlierManualReferencecalls