classProject
final class Project
A loaded project: its items and sources, runners, extensions and coverage gates.
Properties§
public string $directorypublic array<string, Item> $itemspublic array<string, Source> $sourcespublic array<string, RunnerConfig> $runnerspublic array<string, string> $sourceExtensionspublic array<string, string> $runnerExtensionspublic float $minimumpublic float $diffMinimumpublic array<string, float> $sourceThresholdspublic list<string> $filespublic array<string, mixed> $markdown = []Methods§
public function __construct(
public string $directory,
public array<string, Item> $items,
public array<string, Source> $sources,
public array<string, RunnerConfig> $runners,
public array<string, string> $sourceExtensions,
public array<string, string> $runnerExtensions,
public float $minimum,
public float $diffMinimum,
public array<string, float> $sourceThresholds,
public list<string> $files,
public array<string, mixed> $markdown = [],
)Parameters
$directory | string | The directory of the configuration file |
$items | array<string, Item> | Every item by ID |
$sources | array<string, Source> | Every declared source by ID |
$runners | array<string, RunnerConfig> | Configured runners by name |
$sourceExtensions | array<string, string> | Source extension classes by format |
$runnerExtensions | array<string, string> | Runner extension classes by name |
$minimum | float | The overall coverage threshold in percent |
$diffMinimum | float | The threshold for units new or changed since a snapshot |
$sourceThresholds | array<string, float> | Coverage thresholds by source ID |
$files | list<string> | The configuration file followed by the definition files |
$markdown | array<string, mixed> | The markdown options of the configuration |
Test cases 38§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 36
LoaderTestcallsMarkdownDocumentTestcallsApplicationTestcallsCommandHandlerTestcallsCommandLineTestcallsExecutorTestcallsFormatterTestcallsSpecificationReportTest::testGenerateChecksLinkageIndependentlyOfExecutioncallsAnalyzerTest::testAnalyzeReadsPinnedSnapshotsUnlessLivecallsCoverageTest::testReportAppliesTheDifferentialThresholdToNewAndChangedUnitscallsCoverageTest::testReportAppliesTheOverallThresholdcallsCoverageTest::testReportAppliesTheSourceThresholdscallsCoverageTest::testReportDescribesEveryUnitAndPassesWithoutGatescallsCoverageTest::testReportFailsAPositiveOverallThresholdWithoutUnitscallsCoverageTest::testReportFailsWithTheErrorsOfTheAnalysiscallsCoverageTest::testReportRejectsAFileThatIsNotASnapshotcallsCoverageTest::testReportRejectsRemovedUnitsUnlessAllowedcallsCoverageTest::testReportRequiresASnapshotForAPositiveDifferentialThresholdcallsCoverageTest::testReportSkipsTheDifferentialThresholdWithoutChangedUnitscallsSnapshotTest::testCompareListsNewAndChangedUnitsAndRemovedKeyscallsSnapshotTest::testCreateListsTheFingerprintOfEveryUnitcallsTestExecutionTest::testRunDeduplicatesEligibleTargetsAndNeverRunsUnsupportedItemscallsVerifierTest::testVerifyDefersManualTargetsUnlessAllIsRequestedcallsVerifierTest::testVerifyFailsWhenAnyTargetFailscallsVerifierTest::testVerifyKeysResultsByItemIdcallsVerifierTest::testVerifyPassesWhenEveryTargetPassescallsVerifierTest::testVerifyRejectsAnExtensionClassThatIsNotARunnercallsVerifierTest::testVerifyRejectsAnUnknownRunnerExtensioncallsVerifierTest::testVerifyReportsLinkedTargetsAsNotRunWithoutTestscallsVerifierTest::testVerifyReportsRequirementsAsNotApplicableWithoutRunningThemcallsVerifierTest::testVerifyReportsSpecificationsWithoutTestsAsUnverifiedcallsVerifierTest::testVerifyReportsUnsupportedSpecificationsWithoutRunningThemcallsVerifierTest::testVerifyReturnsNothingWithoutItemscallsVerifierTest::testVerifyRunsASharedTargetOncecallsVerifierTest::testVerifyRunsTheSameTargetOfDifferentRunnersSeparatelycallsVerifierTest::testVerifySharesAnAutomaticResultWithAnEarlierManualReferencecalls
Relations§
Instantiated in 1
Type declarations 9
- type Requirements\Config\Loader packages/requirements/src/Config/Loader.php:36
- type Requirements\Console\Executor packages/requirements/src/Console/Executor.php:34
- type Requirements\Console\SpecificationReport packages/requirements/src/Console/SpecificationReport.php:26
- type Requirements\Report\Analyzer packages/requirements/src/Report/Analyzer.php:29
- type Requirements\Report\Coverage packages/requirements/src/Report/Coverage.php:31
- type Requirements\Report\Snapshot packages/requirements/src/Report/Snapshot.php:35
- type Requirements\Report\Snapshot packages/requirements/src/Report/Snapshot.php:87
- type Requirements\Verification\TestExecution packages/requirements/src/Verification/TestExecution.php:28
- type Requirements\Verification\Verifier packages/requirements/src/Verification/Verifier.php:32