CI #499
ci.yaml
on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
2s
Annotations
10 warnings
Test for mutants (ubuntu-latest, 8.1):
src/Cache/DI/CacheExtension.php#L25
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function loadConfiguration() : void
{
$dir = $this->tempDir;
- FileSystem::createDir($dir);
+
if (!is_writable($dir)) {
throw InvalidState::create()->withMessage("Make directory '{$dir}' writable.");
}
|
Test for mutants (ubuntu-latest, 8.1):
src/Cache/DI/CacheExtension.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
$builder = $this->getContainerBuilder();
if (Dependencies::isExtensionLoaded('pdo_sqlite')) {
- $builder->addDefinition($this->prefix('journal'))->setFactory(SQLiteJournal::class, ["{$dir}/journal.s3db"])->setType(Journal::class);
+
}
$builder->addDefinition($this->prefix('storage'))->setFactory(FileStorage::class, [$dir])->setType(Storage::class);
}
}
|
Test for mutants (ubuntu-latest, 8.1):
src/Config/DI/ConfigExtension.php#L24
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function loadConfiguration() : void
{
- parent::loadConfiguration();
+
$builder = $this->getContainerBuilder();
$this->providerDefinition = $builder->addDefinition($this->prefix('provider'))->setFactory(ConfigProvider::class);
}
|
Test for mutants (ubuntu-latest, 8.1):
src/Config/DI/ConfigExtension.php#L33
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function beforeCompile() : void
{
- parent::beforeCompile();
+
$builder = $this->getContainerBuilder();
$itemProviders = [];
foreach ($builder->findByType(ConfigItemProvider::class) as $definition) {
|
Test for mutants (ubuntu-latest, 8.1):
src/Config/DI/ConfigExtension.php#L38
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
parent::beforeCompile();
$builder = $this->getContainerBuilder();
$itemProviders = [];
- foreach ($builder->findByType(ConfigItemProvider::class) as $definition) {
+ foreach (array() as $definition) {
$itemProviders[$definition->getType()] = $definition->getName();
}
$this->providerDefinition->setArguments([$itemProviders]);
}
}
|
Test for mutants (ubuntu-latest, 8.1):
src/Dbal/DI/DbalExtension.php#L26
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
{
public function getConfigSchema() : Schema
{
- return Expect::structure(['debug' => Expect::bool(false), 'panelQueryExplain' => Expect::bool(true), 'sqlProcessorFactory' => Expect::anyOf(Expect::string(), Expect::type(Statement::class)), 'connections' => Expect::arrayOf(Expect::structure([
+ return Expect::structure(['debug' => Expect::bool(true), 'panelQueryExplain' => Expect::bool(true), 'sqlProcessorFactory' => Expect::anyOf(Expect::string(), Expect::type(Statement::class)), 'connections' => Expect::arrayOf(Expect::structure([
'autowired' => Expect::bool(true),
'driver' => Expect::anyOf('mysqli', 'pdo_mysql', 'pgsql', 'pdo_pgsql', 'sqlsrv', 'pdo_sqlsrv')->required(),
'host' => Expect::string()->dynamic(),
|
Test for mutants (ubuntu-latest, 8.1):
src/Dbal/DI/DbalExtension.php#L27
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
public function getConfigSchema() : Schema
{
- return Expect::structure(['debug' => Expect::bool(false), 'panelQueryExplain' => Expect::bool(true), 'sqlProcessorFactory' => Expect::anyOf(Expect::string(), Expect::type(Statement::class)), 'connections' => Expect::arrayOf(Expect::structure([
+ return Expect::structure(['debug' => Expect::bool(false), 'panelQueryExplain' => Expect::bool(false), 'sqlProcessorFactory' => Expect::anyOf(Expect::string(), Expect::type(Statement::class)), 'connections' => Expect::arrayOf(Expect::structure([
'autowired' => Expect::bool(true),
'driver' => Expect::anyOf('mysqli', 'pdo_mysql', 'pgsql', 'pdo_pgsql', 'sqlsrv', 'pdo_sqlsrv')->required(),
'host' => Expect::string()->dynamic(),
|
Test for mutants (ubuntu-latest, 8.1):
src/Dbal/DI/DbalExtension.php#L47
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
'password' => Expect::string()->dynamic(),
'database' => Expect::string(),
'connectionTz' => Expect::string(IDriver::TIMEZONE_AUTO_PHP_NAME),
- 'nestedTransactionsWithSavepoint' => Expect::bool(true),
+ 'nestedTransactionsWithSavepoint' => Expect::bool(false),
// mysql only
'charset' => Expect::string(),
'sqlMode' => Expect::string('TRADITIONAL'),
|
Test for mutants (ubuntu-latest, 8.1):
src/Dbal/DI/DbalExtension.php#L82
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
// Remove from Connection config compile-time only values
unset($connectionConfig['autowired']);
// Connection expects empty values to be not set
- foreach ($connectionConfig as $key => $value) {
+ foreach (array() as $key => $value) {
if ($value === null) {
unset($connectionConfig[$key]);
}
|
Test for mutants (ubuntu-latest, 8.1):
src/Dbal/DI/DbalExtension.php#L83
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
unset($connectionConfig['autowired']);
// Connection expects empty values to be not set
foreach ($connectionConfig as $key => $value) {
- if ($value === null) {
+ if ($value !== null) {
unset($connectionConfig[$key]);
}
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
582 KB |
|