CI #78
ci.yaml
on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
4s
Annotations
10 warnings
Test for mutants (ubuntu-latest, 8.3):
src/Auth/DI/HttpAuthExtension.php#L25
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
{
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.3):
src/Auth/DI/HttpAuthExtension.php#L25
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
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.3):
src/Auth/DI/HttpAuthExtension.php#L37
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function loadConfiguration(): void
{
- parent::loadConfiguration();
+
$builder = $this->getContainerBuilder();
$config = $this->config;
if (!$config->enabled) {
|
Test for mutants (ubuntu-latest, 8.3):
src/Auth/DI/HttpAuthExtension.php#L73
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function beforeCompile(): void
{
- parent::beforeCompile();
+
$builder = $this->getContainerBuilder();
$config = $this->config;
if (!$config->enabled) {
|
Test for mutants (ubuntu-latest, 8.3):
src/Auth/DI/HttpAuthExtension.php#L85
Escaped Mutant for Mutator "TrueValue":
@@ @@
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.3):
src/Auth/DI/HttpAuthExtension.php#L86
Escaped Mutant for Mutator "TrueValue":
@@ @@
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.3):
src/Tester/TestResponse.php#L56
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$name = self::formatName($name);
if ($value === null) {
- $this->deleteHeader($name);
+
} else {
$this->headers[$name] = [$value];
}
|
Test for mutants (ubuntu-latest, 8.3):
src/Tester/TestResponse.php#L116
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
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.3):
src/Tester/TestResponse.php#L125
Escaped Mutant for Mutator "Minus":
@@ @@
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;
}
|
Test for mutants (ubuntu-latest, 8.3):
src/Tester/TestResponse.php#L125
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
return $this;
}
$time = new DateTimeImmutable($expire);
- $this->setHeader('Cache-Control', 'max-age=' . ($time->format('U') - time()));
+ $this->setHeader('Cache-Control', 'max-age=');
$this->setHeader('Expires', Helpers::formatDate($time));
return $this;
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
1.95 KB |
|