Skip to content
Triggered via pull request April 7, 2024 17:36
@lexaliumlexalium
opened #7
3.1.0
Status Success
Total duration 42s
Artifacts

tests.yml

on: pull_request
PHPStan static code analysis
21s
PHPStan static code analysis
PHP Code Sniffer static code analysis
22s
PHP Code Sniffer static code analysis
Matrix: Mutation testing
Matrix: PHPUnit tests
Fit to window
Zoom out
Zoom in

Annotations

16 warnings
PHPUnit tests (8.1)
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/.
PHPStan static code analysis
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/.
PHP Code Sniffer static code analysis
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/.
PHPUnit tests (8.3)
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/.
PHPUnit tests (8.2)
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 (8.2)
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 (8.2): src/Exception/SteppedFormErrorsException.php#L18
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function __construct(public readonly array $errors) { - parent::__construct(); + } }
Mutation testing (8.2): src/Form/ChangeSet/ObjectTypeChangeSet.php#L69
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ return true; } $reflectionObject = ObjectDefinition::getReflectionObject($object); - return !$reflectionObject->isInternal() && !$reflectionObject->isEnum(); + return $reflectionObject->isInternal() && $reflectionObject->isEnum(); } }
Mutation testing (8.2): src/Form/StepControl.php#L35
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ { $current = $this->storage->get(self::STORAGE_KEY); if ($current !== null) { - throw new AlreadyStartedException((string) $current); + throw new AlreadyStartedException($current); } } public function throwIfNotStarted() : void
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L51
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function put(StepKey $key, mixed $entity) : void { $data = $this->getData(); - $this->checkAvailabilityToPut($key->value, $entity, $data); + $data = $this->reflect($key->value, $entity, $data); $data[$key->value] = $entity; $this->storage->put(self::STORAGE_KEY, $data);
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L76
Escaped Mutant for Mutator "CastArray": --- Original +++ New @@ @@ */ private function getData() : array { - return (array) $this->storage->get(self::STORAGE_KEY, []); + return $this->storage->get(self::STORAGE_KEY, []); } /** * @return string[]
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L95
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ { $keys = $this->keys(); $index = $this->getIndex($key); - if ($index === null || $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { + if ($index !== null || $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { return; } $previous = $data[$keys[$index - 1]];
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L95
Escaped Mutant for Mutator "LessThanOrEqualTo": --- Original +++ New @@ @@ { $keys = $this->keys(); $index = $this->getIndex($key); - if ($index === null || $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { + if ($index === null || $index < 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { return; } $previous = $data[$keys[$index - 1]];
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L95
Escaped Mutant for Mutator "LessThanOrEqualToNegotiation": --- Original +++ New @@ @@ { $keys = $this->keys(); $index = $this->getIndex($key); - if ($index === null || $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { + if ($index === null || $index > 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { return; } $previous = $data[$keys[$index - 1]];
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L95
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { $keys = $this->keys(); $index = $this->getIndex($key); - if ($index === null || $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { + if ($index === null && $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { return; } $previous = $data[$keys[$index - 1]];
Mutation testing (8.2): src/Form/Storage/DataStorage.php#L95
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ { $keys = $this->keys(); $index = $this->getIndex($key); - if ($index === null || $index <= 0 || !isset($keys[$index - 1], $data[$keys[$index - 1]])) { + if ($index === null || $index <= 0 || !isset($keys[$index - 0], $data[$keys[$index - 1]])) { return; } $previous = $data[$keys[$index - 1]];