Merge pull request #612 from ergebnis/dependabot/composer/ergebnis/ph… #1003
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
integrate.yaml
on: push
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
10 warnings
Mutation Tests (8.1, locked):
src/Classes/FinalRule.php#L55
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
public function __construct(bool $allowAbstractClasses, array $classesNotRequiredToBeAbstractOrFinal)
{
$this->allowAbstractClasses = $allowAbstractClasses;
- $this->classesNotRequiredToBeAbstractOrFinal = \array_map(static function (string $classNotRequiredToBeAbstractOrFinal) : string {
- return $classNotRequiredToBeAbstractOrFinal;
- }, $classesNotRequiredToBeAbstractOrFinal);
+ $this->classesNotRequiredToBeAbstractOrFinal = $classesNotRequiredToBeAbstractOrFinal;
if ($allowAbstractClasses) {
$this->errorMessageTemplate = 'Class %s is neither abstract nor final.';
}
|
Mutation Tests (8.1, locked):
src/Classes/FinalRule.php#L73
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function processNode(Node $node, Analyser\Scope $scope) : array
{
- if (!$node instanceof Node\Stmt\Class_) {
+ if (!true) {
throw new ShouldNotHappenException(\sprintf('Expected node to be instance of "%s", but got instance of "%s" instead.', Node\Stmt\Class_::class, $node::class));
}
if (!isset($node->namespacedName)) {
|
Mutation Tests (8.1, locked):
src/Classes/FinalRule.php#L147
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
if (\is_int(\preg_match_all('/@(\\S+)(?=\\s|$)/', $reformattedComment, $matches))) {
foreach ($matches[1] as $annotation) {
foreach (self::$whitelistedAnnotations as $whitelistedAnnotation) {
- if (0 === \mb_strpos($annotation, $whitelistedAnnotation)) {
+ if (0 === strpos($annotation, $whitelistedAnnotation)) {
return true;
}
}
|
Mutation Tests (8.1, locked):
src/Classes/NoExtendsRule.php#L40
Escaped Mutant for Mutator "UnwrapArrayUnique":
--- Original
+++ New
@@ @@
*/
public function __construct(array $classesAllowedToBeExtended)
{
- $this->classesAllowedToBeExtended = \array_unique(\array_merge(self::$defaultClassesAllowedToBeExtended, \array_map(static function (string $classAllowedToBeExtended) : string {
+ $this->classesAllowedToBeExtended = \array_merge(self::$defaultClassesAllowedToBeExtended, \array_map(static function (string $classAllowedToBeExtended) : string {
/** @var class-string $classAllowedToBeExtended */
return $classAllowedToBeExtended;
- }, $classesAllowedToBeExtended)));
+ }, $classesAllowedToBeExtended));
}
public function getNodeType() : string
{
|
Mutation Tests (8.1, locked):
src/Classes/NoExtendsRule.php#L42
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
*/
public function __construct(array $classesAllowedToBeExtended)
{
- $this->classesAllowedToBeExtended = \array_unique(\array_merge(self::$defaultClassesAllowedToBeExtended, \array_map(static function (string $classAllowedToBeExtended) : string {
- /** @var class-string $classAllowedToBeExtended */
- return $classAllowedToBeExtended;
- }, $classesAllowedToBeExtended)));
+ $this->classesAllowedToBeExtended = \array_unique(\array_merge(self::$defaultClassesAllowedToBeExtended, $classesAllowedToBeExtended));
}
public function getNodeType() : string
{
|
Mutation Tests (8.1, locked):
src/Classes/NoExtendsRule.php#L58
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function processNode(Node $node, Analyser\Scope $scope) : array
{
- if (!$node instanceof Node\Stmt\Class_) {
+ if (!true) {
throw new ShouldNotHappenException(\sprintf('Expected node to be instance of "%s", but got instance of "%s" instead.', Node\Stmt\Class_::class, $node::class));
}
if (!$node->extends instanceof Node\Name) {
|
Mutation Tests (8.1, locked):
src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php#L46
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function processNode(Node $node, Analyser\Scope $scope) : array
{
- if (!$node instanceof Node\Stmt\Class_) {
+ if (!true) {
throw new ShouldNotHappenException(\sprintf('Expected node to be instance of "%s", but got instance of "%s" instead.', Node\Stmt\Class_::class, $node::class));
}
if ($node->isAbstract()) {
|
Mutation Tests (8.1, locked):
src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php#L58
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if ($node->isAbstract()) {
return [];
}
- if (!$node->extends instanceof Node\Name) {
+ if (!true) {
return [];
}
if (!isset($node->namespacedName)) {
|
Mutation Tests (8.1, locked):
src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php#L77
Escaped Mutant for Mutator "Break_":
--- Original
+++ New
@@ @@
foreach (self::$phpunitTestCaseClassNames as $phpunitTestCaseClassName) {
if ($classReflection->isSubclassOf($phpunitTestCaseClassName)) {
$extendedPhpunitTestCaseClassName = $phpunitTestCaseClassName;
- break;
+ continue;
}
}
if ('' === $extendedPhpunitTestCaseClassName) {
|
Mutation Tests (8.1, locked):
src/Closures/NoNullableReturnTypeDeclarationRule.php#L32
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function processNode(Node $node, Analyser\Scope $scope) : array
{
- if (!$node instanceof Node\Expr\Closure) {
+ if (!true) {
throw new ShouldNotHappenException(\sprintf('Expected node to be instance of "%s", but got instance of "%s" instead.', Node\Expr\Closure::class, $node::class));
}
if (!self::hasNullableReturnType($node)) {
|