Skip to content

build

build #199

Triggered via schedule September 22, 2024 16:16
Status Success
Total duration 33s
Artifacts

build.yml

on: schedule
Code Style (phpcs)
7s
Code Style (phpcs)
Code Style (php-cs-fixer)
7s
Code Style (php-cs-fixer)
Code analysis (phpstan)
13s
Code analysis (phpstan)
Check src/UnboundedOccursPaths.json file
13s
Check src/UnboundedOccursPaths.json file
Mutation testing analysis (infection)
23s
Mutation testing analysis (infection)
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation testing analysis (infection): src/CfdiToDataNode.php#L94
Escaped Mutant for Mutator "Break_": @@ @@ $parentsStack = []; for ($current = $element; null !== $current; $current = $current->parentNode) { if ($namespace !== $current->namespaceURI) { - break; + continue; } $parentsStack[] = $current->localName; }
Mutation testing analysis (infection): src/CfdiToDataNode.php#L108
Escaped Mutant for Mutator "Continue_": @@ @@ $values = []; foreach ($element->childNodes as $childElement) { if (!$childElement instanceof DOMText) { - continue; + break; } $values[] = $childElement->wholeText; }
Mutation testing analysis (infection): src/CfdiToDataNode.php#L112
Escaped Mutant for Mutator "CastString": @@ @@ } $values[] = $childElement->wholeText; } - return (string) preg_replace(['/\s+/', '/^ +/', '/ +$/'], [' ', '', ''], implode('', $values)); + return preg_replace(['/\s+/', '/^ +/', '/ +$/'], [' ', '', ''], implode('', $values)); } }
Mutation testing analysis (infection): src/Factory.php#L46
Escaped Mutant for Mutator "Catch_": @@ @@ } try { $unboundedOccursPaths = $this->createUnboundedOccursPathsUsingJsonSource($contents); - } catch (JsonException|LogicException $exception) { + } catch (JsonException $exception) { throw new LogicException("The file {$sourceFile} has invalid contents", 0, $exception); } return $unboundedOccursPaths;
Mutation testing analysis (infection): src/Factory.php#L47
Escaped Mutant for Mutator "DecrementInteger": @@ @@ try { $unboundedOccursPaths = $this->createUnboundedOccursPathsUsingJsonSource($contents); } catch (JsonException|LogicException $exception) { - throw new LogicException("The file {$sourceFile} has invalid contents", 0, $exception); + throw new LogicException("The file {$sourceFile} has invalid contents", -1, $exception); } return $unboundedOccursPaths; }
Mutation testing analysis (infection): src/Factory.php#L47
Escaped Mutant for Mutator "IncrementInteger": @@ @@ try { $unboundedOccursPaths = $this->createUnboundedOccursPathsUsingJsonSource($contents); } catch (JsonException|LogicException $exception) { - throw new LogicException("The file {$sourceFile} has invalid contents", 0, $exception); + throw new LogicException("The file {$sourceFile} has invalid contents", 1, $exception); } return $unboundedOccursPaths; }
Mutation testing analysis (infection): src/Factory.php#L60
Escaped Mutant for Mutator "DecrementInteger": @@ @@ */ public function createUnboundedOccursPathsUsingJsonSource(string $contents): UnboundedOccursPaths { - $sourcePaths = json_decode($contents, true, 512, JSON_THROW_ON_ERROR); + $sourcePaths = json_decode($contents, true, 511, JSON_THROW_ON_ERROR); if (!is_array($sourcePaths)) { throw new LogicException('JSON does not contains an array of entries'); }
Mutation testing analysis (infection): src/Factory.php#L60
Escaped Mutant for Mutator "IncrementInteger": @@ @@ */ public function createUnboundedOccursPathsUsingJsonSource(string $contents): UnboundedOccursPaths { - $sourcePaths = json_decode($contents, true, 512, JSON_THROW_ON_ERROR); + $sourcePaths = json_decode($contents, true, 513, JSON_THROW_ON_ERROR); if (!is_array($sourcePaths)) { throw new LogicException('JSON does not contains an array of entries'); }
Mutation testing analysis (infection): src/Nodes/Node.php#L50
Escaped Mutant for Mutator "PublicVisibility": @@ @@ { return $this->path; } - public function getValue(): string + protected function getValue(): string { return $this->value; }
Mutation testing analysis (infection): src/XsdMaxOccurs/Finder.php#L46
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $xpath->registerNamespace('x', self::NS_XMLSCHEMA); $nodes = $xpath->query($query) ?: new DOMNodeList(); foreach ($nodes as $node) { - if ($node instanceof DOMElement) { + if (true) { $paths[] = $this->obtainPathForElement($node); } }