Skip to content

build

build #164

Triggered via schedule February 18, 2024 16:01
Status Success
Total duration 31s
Artifacts

build.yml

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

Annotations

20 warnings
Code Style (phpcs)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Code Style (php-cs-fixer)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests on PHP 8.1 (phpunit)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests on PHP 8.2 (phpunit)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests on PHP 7.4 (phpunit)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check src/UnboundedOccursPaths.json file
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests on PHP 8.0 (phpunit)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests on PHP 7.3 (phpunit)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Code analysis (phpstan)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation testing analysis (infection)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation testing analysis (infection): src/CfdiToDataNode.php#L94
Escaped Mutant for Mutator "Break_": --- Original +++ New @@ @@ $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_": --- Original +++ New @@ @@ $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": --- Original +++ New @@ @@ } $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_": --- Original +++ New @@ @@ } 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": --- Original +++ New @@ @@ 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": --- Original +++ New @@ @@ 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": --- Original +++ New @@ @@ */ 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": --- Original +++ New @@ @@ */ 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": --- Original +++ New @@ @@ { 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_": --- Original +++ New @@ @@ $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); } }