Skip to content

Update phpunit from ^11.5.17 to ^12.4.3 #2173

Update phpunit from ^11.5.17 to ^12.4.3

Update phpunit from ^11.5.17 to ^12.4.3 #2173

Triggered via pull request November 19, 2025 17:13
Status Success
Total duration 2m 49s
Artifacts

mutation-tests.yml

on: pull_request
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/PersonalDataPayloadCryptographer.php#L112
Escaped Mutant for Mutator "Continue_": @@ @@ } if (!$cipherKey) { $data[$propertyMetadata->fieldName()] = $this->fallback($propertyMetadata, $subjectId, $rawData); - continue; + break; } try { $data[$propertyMetadata->fieldName()] = $this->cipher->decrypt($cipherKey, $rawData);
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/PersonalDataPayloadCryptographer.php#L107
Escaped Mutant for Mutator "Continue_": @@ @@ } elseif (!$this->useEncryptedFieldName || $this->fallbackToFieldName) { $rawData = $data[$propertyMetadata->fieldName()]; } else { - continue; + break; } if (!$cipherKey) { $data[$propertyMetadata->fieldName()] = $this->fallback($propertyMetadata, $subjectId, $rawData);
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/PersonalDataPayloadCryptographer.php#L68
Escaped Mutant for Mutator "Continue_": @@ @@ $targetFieldName = $this->useEncryptedFieldName ? $propertyMetadata->encryptedFieldName() : $propertyMetadata->fieldName(); $data[$targetFieldName] = $this->cipher->encrypt($cipherKey, $data[$propertyMetadata->fieldName()]); if (!$this->useEncryptedFieldName) { - continue; + break; } unset($data[$propertyMetadata->fieldName()]); }
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L61
Escaped Mutant for Mutator "PublicVisibility": @@ @@ { return openssl_get_cipher_methods(true); } - public static function methodSupported(string $method): bool + protected static function methodSupported(string $method): bool { return in_array($method, self::supportedMethods(), true); } }
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L56
Escaped Mutant for Mutator "PublicVisibility": @@ @@ return new CipherKey(openssl_random_pseudo_bytes($this->keyLength), $this->method, openssl_random_pseudo_bytes($this->ivLength)); } /** @return list<string> */ - public static function supportedMethods(): array + protected static function supportedMethods(): array { return openssl_get_cipher_methods(true); }
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L32
Escaped Mutant for Mutator "IfNegation": @@ @@ throw new MethodNotSupported($this->method); } $keyLength = 16; - if (function_exists('openssl_cipher_key_length')) { + if (!function_exists('openssl_cipher_key_length')) { $keyLength = @openssl_cipher_key_length($this->method); } $ivLength = @openssl_cipher_iv_length($this->method);
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L30
Escaped Mutant for Mutator "IncrementInteger": @@ @@ if (!self::methodSupported($this->method)) { throw new MethodNotSupported($this->method); } - $keyLength = 16; + $keyLength = 17; if (function_exists('openssl_cipher_key_length')) { $keyLength = @openssl_cipher_key_length($this->method); }
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipherKeyFactory.php#L27
Escaped Mutant for Mutator "Throw_": @@ @@ public function __construct(private readonly string $method = self::DEFAULT_METHOD) { if (!self::methodSupported($this->method)) { - throw new MethodNotSupported($this->method); + new MethodNotSupported($this->method); } $keyLength = 16; if (function_exists('openssl_cipher_key_length')) {
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipher.php#L65
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } private function dataDecode(string $data): mixed { - return json_decode($data, true, 512, JSON_THROW_ON_ERROR); + return json_decode($data, true, 513, JSON_THROW_ON_ERROR); } }
Mutation tests (locked, 8.4, ubuntu-latest): src/Cryptography/Cipher/OpensslCipher.php#L65
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } private function dataDecode(string $data): mixed { - return json_decode($data, true, 512, JSON_THROW_ON_ERROR); + return json_decode($data, true, 511, JSON_THROW_ON_ERROR); } }