Preparing 5.0.0 #679
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
integrate.yml
on: pull_request
3️⃣ Static Analysis
34s
4️⃣ Coding Standards
33s
5️⃣ Mutation Testing
6m 18s
6️⃣ Rector Checkstyle
43s
7️⃣ Exported files
3s
Matrix: 2️⃣ JS tests
Matrix: 2️⃣ Unit and functional tests
Annotations
6 errors and 10 warnings
4️⃣ Coding Standards
Process completed with exit code 2.
|
3️⃣ Static Analysis:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L1
Ignored error pattern #^Access to an undefined property Webauthn\\MetadataService\\CertificateChain\\PhpCertificateChainValidator\:\:\$requestFactory\.$# in path /home/runner/work/webauthn-framework/webauthn-framework/src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php was not matched in reported errors.
|
3️⃣ Static Analysis:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L1
Ignored error pattern #^Call to an undefined method Symfony\\Contracts\\HttpClient\\HttpClientInterface\:\:sendRequest\(\)\.$# in path /home/runner/work/webauthn-framework/webauthn-framework/src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php was not matched in reported errors.
|
3️⃣ Static Analysis:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L1
Ignored error pattern #^Instanceof between Symfony\\Contracts\\HttpClient\\HttpClientInterface and Symfony\\Contracts\\HttpClient\\HttpClientInterface will always evaluate to true\.$# in path /home/runner/work/webauthn-framework/webauthn-framework/src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php was not matched in reported errors.
|
3️⃣ Static Analysis
Process completed with exit code 2.
|
5️⃣ Mutation Testing
Process completed with exit code 2.
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/CertificateToolbox.php#L36
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
$pem .= chunk_split($data, 64, PHP_EOL);
return $pem . (self::PEM_FOOTER . $type . '-----' . PHP_EOL);
}
- 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#L218
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
return $sequence->at(0)->asInteger()->number();
}, $list->elements());
} catch (Throwable $e) {
- throw CertificateRevocationListException::create($url, 'Failed to download the CRL', $e);
+ CertificateRevocationListException::create($url, 'Failed to download the CRL', $e);
}
}
/**
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L234
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
$extensions = $subject->tbsCertificate()->extensions();
if ($extensions->hasCRLDistributionPoints()) {
$crlDists = $extensions->crlDistributionPoints();
- foreach ($crlDists->distributionPoints() as $dist) {
+ foreach (array() as $dist) {
$url = $dist->fullName()->names()->firstURI();
$scheme = parse_url($url, PHP_URL_SCHEME);
if (!in_array($scheme, ['http', 'https'], true)) {
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L239
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
foreach ($crlDists->distributionPoints() as $dist) {
$url = $dist->fullName()->names()->firstURI();
$scheme = parse_url($url, PHP_URL_SCHEME);
- if (!in_array($scheme, ['http', 'https'], true)) {
+ if (!in_array($scheme, ['https'], true)) {
continue;
}
$urls[] = $url;
|
5️⃣ Mutation Testing:
src/metadata-service/src/CertificateChain/PhpCertificateChainValidator.php#L239
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
foreach ($crlDists->distributionPoints() as $dist) {
$url = $dist->fullName()->names()->firstURI();
$scheme = parse_url($url, PHP_URL_SCHEME);
- if (!in_array($scheme, ['http', 'https'], true)) {
+ if (in_array($scheme, ['http', 'https'], true)) {
continue;
}
$urls[] = $url;
|
5️⃣ Mutation Testing:
src/metadata-service/src/Exception/CertificateRevocationListException.php#L16
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
public function __construct(public readonly string $url, string $message, ?Throwable $previous = null)
{
- parent::__construct($message, $previous);
+
}
public static function create(string $url, string $message = 'Invalid CRL.', ?Throwable $previous = null) : self
{
|
5️⃣ Mutation Testing:
src/metadata-service/src/Exception/CertificateRevocationListException.php#L19
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
parent::__construct($message, $previous);
}
- public static function create(string $url, string $message = 'Invalid CRL.', ?Throwable $previous = null) : self
+ protected static function create(string $url, string $message = 'Invalid CRL.', ?Throwable $previous = null) : self
{
return new self($url, $message, $previous);
}
}
|
5️⃣ Mutation Testing:
src/metadata-service/src/Exception/MetadataServiceException.php#L14
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
public function __construct(string $message, ?Throwable $previous = null)
{
- parent::__construct($message, 0, $previous);
+ parent::__construct($message, -1, $previous);
}
}
|
5️⃣ Mutation Testing:
src/metadata-service/src/Exception/MetadataServiceException.php#L14
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
public function __construct(string $message, ?Throwable $previous = null)
{
- parent::__construct($message, 0, $previous);
+ parent::__construct($message, 1, $previous);
}
}
|
5️⃣ Mutation Testing:
src/metadata-service/src/Service/DistantResourceMetadataService.php#L34
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
/**
* @param array<string, string> $additionalHeaderParameters
*/
- public function __construct(private readonly HttpClientInterface $httpClient, private readonly string $uri, private readonly bool $isBase64Encoded = false, private readonly array $additionalHeaderParameters = [], ?SerializerInterface $serializer = null)
+ public function __construct(private readonly HttpClientInterface $httpClient, private readonly string $uri, private readonly bool $isBase64Encoded = true, private readonly array $additionalHeaderParameters = [], ?SerializerInterface $serializer = null)
{
$this->serializer = $serializer ?? MetadataStatementSerializerFactory::create();
$this->dispatcher = new NullEventDispatcher();
|