Skip to content

Refactor

Refactor #327

Triggered via pull request August 20, 2023 09:36
Status Failure
Total duration 7m 56s
Artifacts

integrate.yml

on: pull_request
0️⃣ Byte-level
4s
0️⃣ Byte-level
1️⃣ Syntax errors
28s
1️⃣ Syntax errors
3️⃣ Static Analysis
55s
3️⃣ Static Analysis
4️⃣ Coding Standards
1m 20s
4️⃣ Coding Standards
5️⃣ Mutation Testing
7m 13s
5️⃣ Mutation Testing
6️⃣ Rector Checkstyle
1m 37s
6️⃣ Rector Checkstyle
7️⃣ Exported files
5s
7️⃣ Exported files
Matrix: 2️⃣ Unit and functional tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
4️⃣ Coding Standards
Process completed with exit code 2.
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Routing/JWKSetLoader.php#L23
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { $this->routes = new RouteCollection(); } - public function add(string $pattern, string $name) : void + protected function add(string $pattern, string $name) : void { $defaults = ['_controller' => $name]; $route = new Route($pattern, $defaults);
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Routing/JWKSetLoader.php#L25
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function add(string $pattern, string $name) : void { - $defaults = ['_controller' => $name]; + $defaults = []; $route = new Route($pattern, $defaults); $this->routes->add(sprintf('jwkset_%s', $name), $route); }
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Routing/JWKSetLoader.php#L29
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $defaults = ['_controller' => $name]; $route = new Route($pattern, $defaults); - $this->routes->add(sprintf('jwkset_%s', $name), $route); + } public function load(mixed $resource, string $type = null) : RouteCollection {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Routing/JWKSetLoader.php#L41
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ } public function supports(mixed $resource, string $type = null) : bool { - return $type === 'jwkset'; + return $type !== 'jwkset'; } public function getResolver() : LoaderResolverInterface {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L35
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ */ public function getSupportedTypes(?string $format) : array { - return [JWE::class => class_exists(JWESerializerManager::class) && $this->formatSupported($format)]; + return [JWE::class => class_exists(JWESerializerManager::class) || $this->formatSupported($format)]; } public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L35
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ */ public function getSupportedTypes(?string $format) : array { - return [JWE::class => class_exists(JWESerializerManager::class) && $this->formatSupported($format)]; + return [JWE::class => !class_exists(JWESerializerManager::class) && !$this->formatSupported($format)]; } public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L35
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ */ public function getSupportedTypes(?string $format) : array { - return [JWE::class => class_exists(JWESerializerManager::class) && $this->formatSupported($format)]; + return [JWE::class => !(class_exists(JWESerializerManager::class) && $this->formatSupported($format))]; } public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L35
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ */ public function getSupportedTypes(?string $format) : array { - return [JWE::class => class_exists(JWESerializerManager::class) && $this->formatSupported($format)]; + return [JWE::class => !class_exists(JWESerializerManager::class) && $this->formatSupported($format)]; } public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L35
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ */ public function getSupportedTypes(?string $format) : array { - return [JWE::class => class_exists(JWESerializerManager::class) && $this->formatSupported($format)]; + return [JWE::class => class_exists(JWESerializerManager::class) && !$this->formatSupported($format)]; } public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool {
5️⃣ Mutation Testing: src/Bundle/JoseFramework/Serializer/JWESerializer.php#L41
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool { - return $type === JWE::class && class_exists(JWESerializerManager::class) && $this->formatSupported($format); + return ($type === JWE::class || class_exists(JWESerializerManager::class)) && $this->formatSupported($format); } public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : JWE {