Merge pull request #495 from web-auth/bug/dql-missing-class #614
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
integrate.yml
on: push
3️⃣ Static Analysis
50s
4️⃣ Coding Standards
44s
5️⃣ Mutation Testing
13m 21s
6️⃣ Rector Checkstyle
55s
7️⃣ Exported files
4s
Matrix: 2️⃣ JS tests
Matrix: 2️⃣ Unit and functional tests
Annotations
1 error and 10 warnings
5️⃣ Mutation Testing
Process completed with exit code 2.
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/CertificateToolbox.php#L30
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
public static function fixPEMStructure(string $data, string $type = 'CERTIFICATE') : string
{
if (str_contains($data, self::PEM_HEADER)) {
- return trim($data);
+ return $data;
}
$pem = self::PEM_HEADER . $type . '-----' . PHP_EOL;
$pem .= chunk_split($data, 64, PHP_EOL);
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/CertificateToolbox.php#L52
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
$data = preg_replace("/[\r\n]*/", '', $data);
return Base64::decode(trim($data), true);
}
- public static function convertDERToPEM(string $data, string $type = 'CERTIFICATE') : string
+ protected static function convertDERToPEM(string $data, string $type = 'CERTIFICATE') : string
{
if (str_contains($data, self::PEM_HEADER)) {
return $data;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L47
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
private const MAX_VALIDATION_LENGTH = 5;
private readonly Clock|ClockInterface $clock;
private EventDispatcherInterface $dispatcher;
- public function __construct(private readonly ClientInterface|HttpClientInterface $client, private readonly ?RequestFactoryInterface $requestFactory = null, null|Clock|ClockInterface $clock = null, private readonly bool $allowFailures = true)
+ public function __construct(private readonly ClientInterface|HttpClientInterface $client, private readonly ?RequestFactoryInterface $requestFactory = null, null|Clock|ClockInterface $clock = null, private readonly bool $allowFailures = false)
{
if ($clock === null) {
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L49
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
private EventDispatcherInterface $dispatcher;
public function __construct(private readonly ClientInterface|HttpClientInterface $client, private readonly ?RequestFactoryInterface $requestFactory = null, null|Clock|ClockInterface $clock = null, private readonly bool $allowFailures = true)
{
- if ($clock === null) {
+ if ($clock !== null) {
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
- if ($requestFactory !== null && !$client instanceof HttpClientInterface) {
+ if ($requestFactory === null && !$client instanceof HttpClientInterface) {
trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.');
}
$this->clock = $clock;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
- if ($requestFactory !== null && !$client instanceof HttpClientInterface) {
+ if ($requestFactory !== null && !true) {
trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.');
}
$this->clock = $clock;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
- if ($requestFactory !== null && !$client instanceof HttpClientInterface) {
+ if ($requestFactory !== null && !false) {
trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.');
}
$this->clock = $clock;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
- if ($requestFactory !== null && !$client instanceof HttpClientInterface) {
+ if ($requestFactory !== null && $client instanceof HttpClientInterface) {
trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.');
}
$this->clock = $clock;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
- if ($requestFactory !== null && !$client instanceof HttpClientInterface) {
+ if ($requestFactory !== null || !$client instanceof HttpClientInterface) {
trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.');
}
$this->clock = $clock;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L57
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
trigger_deprecation('web-auth/metadata-service', '4.5.0', 'The parameter "$clock" will become mandatory in 5.0.0. Please set a valid PSR Clock implementation instead of "null".');
$clock = new SystemClock(new DateTimeZone('UTC'));
}
- if ($requestFactory !== null && !$client instanceof HttpClientInterface) {
+ if (!($requestFactory !== null) && $client instanceof HttpClientInterface) {
trigger_deprecation('web-auth/metadata-service', '4.7.0', 'The parameter "$requestFactory" will be removed in 5.0.0. Please set it to null and set an Symfony\\Contracts\\HttpClient\\HttpClientInterface as "$client" argument.');
}
$this->clock = $clock;
|