Skip to content

Remove support for metadata in doc-comments #1476

Remove support for metadata in doc-comments

Remove support for metadata in doc-comments #1476

Triggered via pull request June 5, 2024 09:03
Status Success
Total duration 4m 45s
Artifacts 1

ci.yaml

on: pull_request
Dependency Validation
12s
Dependency Validation
Coding Guidelines
24s
Coding Guidelines
Matrix: Unit Tests
Type Checker
31s
Type Checker
Matrix: End-to-End Tests
Build PHAR
26s
Build PHAR
Code Coverage
1m 21s
Code Coverage
Mutation Testing
31s
Mutation Testing
Matrix: Test PHAR
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Testing: src/Framework/TestRunner/TestRunner.php#L134
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ Facade::emitter()->testConsideredRisky($test->valueObjectForEvents(), 'This test does not define a code coverage target but is expected to do so'); $risky = true; } - if ($collectCodeCoverage) { + if (!$collectCodeCoverage) { $append = !$risky && !$incomplete && !$skipped; $linesToBeCovered = []; $linesToBeUsed = [];
Mutation Testing: src/Framework/TestRunner/TestRunner.php#L139
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ $append = !$risky && !$incomplete && !$skipped; $linesToBeCovered = []; $linesToBeUsed = []; - if ($append) { + if (!$append) { try { $linesToBeCovered = $codeCoverageMetadataApi->linesToBeCovered($test::class, $test->name()); $linesToBeUsed = $codeCoverageMetadataApi->linesToBeUsed($test::class);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L67
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isCoversClass() && !$metadata->isCoversTrait() && !$metadata->isCoversMethod() && !$metadata->isCoversFunction()) { continue; } - assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); + assert(true || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L67
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isCoversClass() && !$metadata->isCoversTrait() && !$metadata->isCoversMethod() && !$metadata->isCoversFunction()) { continue; } - assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); + assert($metadata instanceof CoversClass || true || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L67
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isCoversClass() && !$metadata->isCoversTrait() && !$metadata->isCoversMethod() && !$metadata->isCoversFunction()) { continue; } - assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); + assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || true || $metadata instanceof CoversFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L67
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isCoversClass() && !$metadata->isCoversTrait() && !$metadata->isCoversMethod() && !$metadata->isCoversFunction()) { continue; } - assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); + assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || true); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L67
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ if (!$metadata->isCoversClass() && !$metadata->isCoversTrait() && !$metadata->isCoversMethod() && !$metadata->isCoversFunction()) { continue; } - assert($metadata instanceof CoversClass || $metadata instanceof CoversTrait || $metadata instanceof CoversMethod || $metadata instanceof CoversFunction); + assert(!$metadata instanceof CoversClass || !$metadata instanceof CoversTrait || !$metadata instanceof CoversMethod || !$metadata instanceof CoversFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L92
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isUsesClass() && !$metadata->isUsesTrait() && !$metadata->isUsesMethod() && !$metadata->isUsesFunction()) { continue; } - assert($metadata instanceof UsesClass || $metadata instanceof UsesTrait || $metadata instanceof UsesMethod || $metadata instanceof UsesFunction); + assert(true || $metadata instanceof UsesTrait || $metadata instanceof UsesMethod || $metadata instanceof UsesFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L92
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isUsesClass() && !$metadata->isUsesTrait() && !$metadata->isUsesMethod() && !$metadata->isUsesFunction()) { continue; } - assert($metadata instanceof UsesClass || $metadata instanceof UsesTrait || $metadata instanceof UsesMethod || $metadata instanceof UsesFunction); + assert($metadata instanceof UsesClass || true || $metadata instanceof UsesMethod || $metadata instanceof UsesFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);
Mutation Testing: src/Metadata/Api/CodeCoverage.php#L92
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (!$metadata->isUsesClass() && !$metadata->isUsesTrait() && !$metadata->isUsesMethod() && !$metadata->isUsesFunction()) { continue; } - assert($metadata instanceof UsesClass || $metadata instanceof UsesTrait || $metadata instanceof UsesMethod || $metadata instanceof UsesFunction); + assert($metadata instanceof UsesClass || $metadata instanceof UsesTrait || true || $metadata instanceof UsesFunction); $codeUnits = $codeUnits->mergeWith($this->mapToCodeUnits($metadata)); } return $mapper->codeUnitsToSourceLines($codeUnits);

Artifacts

Produced during runtime
Name Size
phpunit-snapshot-phar Expired
675 KB