Update dependency phpunit/phpunit to v10 #1058
continuous-integration.yml
on: push
Generate job matrix
7s
Matrix: QA Checks
Annotations
10 warnings
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/Autoloader/Autoloader.php#L37
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
}
public function __invoke(string $className) : bool
{
- if (class_exists($className, false) || !$this->classNameInflector->isGeneratedClassName($className)) {
+ if (class_exists($className, true) || !$this->classNameInflector->isGeneratedClassName($className)) {
return false;
}
$file = $this->fileLocator->getGeneratedClassFileName($className);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/BaseGeneratorStrategy.php#L46
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
$this->prettyPrinter = $prettyPrinter;
}
- protected function getPrettyPrinter() : PrettyPrinterAbstract
+ private function getPrettyPrinter() : PrettyPrinterAbstract
{
return $this->prettyPrinter ?: ($this->prettyPrinter = new Standard());
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php#L54
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
public function generate(array $ast) : string
{
$code = parent::generate($ast);
- if (!$this->canEval) {
+ if ($this->canEval) {
$fileName = sys_get_temp_dir() . '/EvaluatingGeneratorStrategy.php.tmp.' . uniqid('', true);
file_put_contents($fileName, "<?php\n" . $code);
/** @psalm-suppress UnresolvableInclude we're doing `eval()` here! There's no going back! */
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L64
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
{
$this->traverser->traverse($ast);
$generatedCode = parent::generate($ast);
- $className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
+ $className = $this->visitor->getNamespace() . '\\' . $this->visitor->getName();
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
$tmpFileName = $fileName . '.' . uniqid('', true);
// renaming files is necessary to avoid race conditions when the same file is written multiple times
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = '.' . uniqid('', true);
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = $fileName . uniqid('', true);
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = $fileName . uniqid('', true) . '.';
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = $fileName . '.';
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/Inflector/Util/ParameterEncoder.php#L40
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
*/
public function encodeParameters(array $parameters) : string
{
- return str_replace('+/=', '†‡•', base64_encode(serialize($parameters)));
+ return base64_encode(serialize($parameters));
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/ReflectionBuilder/ClassBuilder.php#L109
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
throw new BadMethodCallException('Disabled');
}
- protected function buildProperty(ReflectionProperty $reflectionProperty) : Node\Stmt\Property
+ private function buildProperty(ReflectionProperty $reflectionProperty) : Node\Stmt\Property
{
$propertyBuilder = new Property($reflectionProperty->getName());
if ($reflectionProperty->isPublic()) {
|