Skip to content

Release 1.3.3

Release 1.3.3 #245

Triggered via push June 21, 2024 11:51
Status Success
Total duration 2m 33s
Artifacts 1

ci.yaml

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

Annotations

10 warnings
Test for mutants (ubuntu-latest, 8.3): src/Boot/BaseConfigurator.php#L179
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private function generateContainer(Compiler $compiler, array $configFiles): void { $loader = new Loader(); - $loader->setParameters($this->staticParameters); + foreach ($this->configAdapters as $extension => $adapter) { $loader->addAdapter($extension, $adapter); }
Test for mutants (ubuntu-latest, 8.3): src/Boot/BaseConfigurator.php#L200
Escaped Mutant for Mutator "UnwrapArrayKeys": @@ @@ $now = new DateTimeImmutable(); $parameters = DIHelpers::escape($this->staticParameters) + ['container' => ['compiledAtTimestamp' => (int) $now->format('U'), 'compiledAt' => $now->format(DATE_ATOM), 'className' => new Literal('static::class')]]; $compiler->addConfig(['parameters' => $parameters]); - $compiler->setDynamicParameterNames(array_keys($this->dynamicParameters)); + $compiler->setDynamicParameterNames($this->dynamicParameters); $builder = $compiler->getContainerBuilder(); $builder->addExcludedClasses($this->autowireExcludedClasses); $compiler->addExtension('extensions', new ExtensionsExtension());
Test for mutants (ubuntu-latest, 8.3): src/Boot/BaseConfigurator.php#L239
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $loader = new ContainerLoader($buildDir, $this->staticParameters['debugMode']); $configFiles = $this->loadConfigFiles(); $containerKey = $this->getContainerKey($configFiles); - $this->reloadContainerOnDemand($loader, $containerKey, $buildDir); + $containerClass = $loader->load(fn(Compiler $compiler) => $this->generateContainer($compiler, $configFiles), $containerKey); assert(is_subclass_of($containerClass, Container::class)); return $containerClass;
Test for mutants (ubuntu-latest, 8.3): src/Boot/BaseConfigurator.php#L291
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": @@ @@ */ private function reloadContainerOnDemand(ContainerLoader $loader, array $containerKey, string $buildDir): void { - $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file); + $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && !is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file); } }
Test for mutants (ubuntu-latest, 8.3): src/Boot/BaseConfigurator.php#L291
Escaped Mutant for Mutator "LogicalAndNegation": @@ @@ */ private function reloadContainerOnDemand(ContainerLoader $loader, array $containerKey, string $buildDir): void { - $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file); + !($this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file)); } }
Test for mutants (ubuntu-latest, 8.3): src/Boot/Environment.php#L31
Escaped Mutant for Mutator "FalseValue": @@ @@ public static function isEnvDebug(string $variableName = 'ORISAI_DEBUG'): bool { $debug = $_SERVER[$variableName] ?? getenv($variableName); - return $debug !== false && (strtolower($debug) === 'true' || $debug === '1'); + return $debug !== true && (strtolower($debug) === 'true' || $debug === '1'); } /** * @param non-empty-string $variableName
Test for mutants (ubuntu-latest, 8.3): src/Boot/Extensions/ConstantsExtension.php#L32
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } public function loadConfiguration(): void { - parent::loadConfiguration(); + foreach ($this->config as $name => $value) { $this->initialization->addBody('define(?, ?);', [$name, $value]); } } }
Test for mutants (ubuntu-latest, 8.3): src/Boot/Extensions/PhpExtension.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } public function loadConfiguration(): void { - parent::loadConfiguration(); + foreach ($this->config as $name => $value) { if (!function_exists('ini_set')) { throw new NotSupportedException('Required function ini_set() is disabled.');
Test for mutants (ubuntu-latest, 8.3): src/Bridge/NetteHttp/CookieDebugSwitcher.php#L35
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } public function startDebug(): void { - $value = bin2hex(random_bytes(128)); + $value = bin2hex(random_bytes(127)); $this->storage->add($value); $this->response->setCookie(Environment::SidDebugCookie, $value, 2147483647); }
Test for mutants (ubuntu-latest, 8.3): src/Bridge/NetteHttp/CookieDebugSwitcher.php#L35
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } public function startDebug(): void { - $value = bin2hex(random_bytes(128)); + $value = bin2hex(random_bytes(129)); $this->storage->add($value); $this->response->setCookie(Environment::SidDebugCookie, $value, 2147483647); }

Artifacts

Produced during runtime
Name Size
Logs - Mutations
1.99 KB