Remove support for metadata in doc-comments #1476
ci.yaml
on: pull_request
Dependency Validation
12s
Coding Guidelines
24s
Matrix: Unit Tests
Type Checker
31s
Matrix: End-to-End Tests
Matrix: Test PHAR
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 |
|