Skip to content
Triggered via schedule November 27, 2023 08:23
Status Success
Total duration 12m 15s
Artifacts 1

ci.yaml

on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
3s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L25
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ { public function getConfigSchema() : Schema { - return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(1), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); + return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(0), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L25
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ { public function getConfigSchema() : Schema { - return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(1), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); + return Expect::structure(['enabled' => Expect::bool(false), 'realm' => Expect::anyOf(Expect::string(), Expect::null())->default(false), 'errorResponses' => Expect::anyOf(Expect::listOf(Expect::string())->min(2), Expect::null()), 'users' => Expect::arrayOf(Expect::string(), Expect::string()), 'exclude' => Expect::structure(['paths' => Expect::listOf(Expect::string())])]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L37
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function loadConfiguration() : void { - parent::loadConfiguration(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L73
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function beforeCompile() : void { - parent::beforeCompile(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L85
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ return; } $initialize = $this->getInitialization(); - $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, true), $builder->getByType(IResponse::class, true)]); + $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, false), $builder->getByType(IResponse::class, true)]); } }
Test for mutants (ubuntu-latest, 8.1): src/Auth/DI/HttpAuthExtension.php#L86
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ return; } $initialize = $this->getInitialization(); - $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, true), $builder->getByType(IResponse::class, true)]); + $initialize->addBody('$this->getService(?)->authenticate($this->getService(?), $this->getService(?));', [$this->prefix('authenticator'), $builder->getByType(IRequest::class, true), $builder->getByType(IResponse::class, false)]); } }
Test for mutants (ubuntu-latest, 8.1): src/Auth/HttpAuthenticator.php#L160
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ { // Get rid of leading, trailing and duplicate slashes, /example//path/ -> example/path $split = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY); - assert($split !== false); + assert($split !== true); return implode('/', $split); } }
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L56
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $name = self::formatName($name); if ($value === null) { - $this->deleteHeader($name); + } else { $this->headers[$name] = [$value]; }
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L116
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function setExpiration(?string $expire) : self { - $this->setHeader('Pragma', null); + if ($expire === null) { // no cache $this->setHeader('Cache-Control', 's-maxage=0, max-age=0, must-revalidate');
Test for mutants (ubuntu-latest, 8.1): src/Tester/TestResponse.php#L125
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ return $this; } $time = new DateTimeImmutable($expire); - $this->setHeader('Cache-Control', 'max-age=' . ($time->format('U') - time())); + $this->setHeader('Cache-Control', 'max-age=' . ($time->format('U') + time())); $this->setHeader('Expires', Helpers::formatDate($time)); return $this; }

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
9 KB