Refactor #327
integrate.yml
on: pull_request
3️⃣ Static Analysis
55s
4️⃣ Coding Standards
1m 20s
5️⃣ Mutation Testing
7m 13s
6️⃣ Rector Checkstyle
1m 37s
7️⃣ Exported files
5s
Matrix: 2️⃣ Unit and functional tests
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
{
|