Skip to content

build

build #246

Triggered via schedule September 7, 2025 16:08
Status Success
Total duration 43s
Artifacts

build.yml

on: schedule
Code style (phpcs)
15s
Code style (phpcs)
Code style (php-cs-fixer)
21s
Code style (php-cs-fixer)
Code analysis (phpstan)
19s
Code analysis (phpstan)
Mutation testing analysis
35s
Mutation testing analysis
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
Mutation testing analysis: src/XmlCancelacionHelper.php#L69
Escaped Mutant for Mutator "PublicVisibility": @@ @@ $credentials = new Credentials($certificateFile, $privateKeyFile, $passPhrase); return $this->setCredentials($credentials); } - public function createDateTime(?DateTimeImmutable $dateTime): DateTimeImmutable + protected function createDateTime(?DateTimeImmutable $dateTime): DateTimeImmutable { if (null === $dateTime) { return new DateTimeImmutable();
Mutation testing analysis: src/Signers/DOMSigner.php#L96
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ $keyInfoElement = $this->createKeyInfoElement($document, $credentials->certificateIssuerName(), $credentials->serialNumber(), $credentials->certificateAsPEM(), $credentials->publicKeyData()); $signature->appendChild($document->importNode($keyInfoElement, self::IMPORT_NODE_DEEP)); } - protected function createSignedInfoElement(): DOMElement + private function createSignedInfoElement(): DOMElement { $template = '<SignedInfo> <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
Mutation testing analysis: src/Signers/CreateKeyInfoElementTrait.php#L13
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ trait CreateKeyInfoElementTrait { /** @param array<mixed> $pubKeyData */ - protected function createKeyInfoElement(DOMDocument $document, string $issuerName, string $serialNumber, string $pemContents, array $pubKeyData): DOMElement + private function createKeyInfoElement(DOMDocument $document, string $issuerName, string $serialNumber, string $pemContents, array $pubKeyData): DOMElement { $x509Data = $document->createElement('X509Data'); $x509IssuerSerial = $document->createElement('X509IssuerSerial');
Mutation testing analysis: src/Credentials.php#L102
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ return $this->csd; } /** @throws CertificateIsNotCSD */ - protected function setCsd(Credential $credential): void + private function setCsd(Credential $credential): void { if (!$credential->isCsd()) { throw new CertificateIsNotCSD($credential->certificate()->serialNumber()->bytes());
Mutation testing analysis: src/Credentials.php#L96
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ if (null === $this->csd) { $credential = $this->makePhpCfdiCredential(); $this->setCsd($credential); - return $credential; + } return $this->csd; }
Mutation testing analysis: src/Credentials.php#L91
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ throw new CannotLoadCertificateAndPrivateKey($this->certificate(), $this->privateKey(), $this->passPhrase(), $exception); } } - protected function getCsd(): Credential + private function getCsd(): Credential { if (null === $this->csd) { $credential = $this->makePhpCfdiCredential();