Enhancement: Add support for PHP 7.4 #830
integrate.yaml
on: pull_request
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
10 warnings
Mutation Tests (7.4, locked):
src/FloatProvider.php#L94
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
+ return ['float-less-than-minus-one' => -2 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
}
}
|
Mutation Tests (7.4, locked):
src/FloatProvider.php#L94
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
+ return ['float-less-than-minus-one' => -0 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
}
}
|
Mutation Tests (7.4, locked):
src/FloatProvider.php#L94
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
+ return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 0), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
}
}
|
Mutation Tests (7.4, locked):
src/FloatProvider.php#L94
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
+ return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 2), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
}
}
|
Mutation Tests (7.4, locked):
src/FloatProvider.php#L98
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
+ return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 0)];
}
}
|
Mutation Tests (7.4, locked):
src/FloatProvider.php#L98
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 1)];
+ return ['float-less-than-minus-one' => -1 * \PHP_FLOAT_EPSILON - $faker->randomFloat(null, 1), 'float-minus-one' => -1.0, 'float-zero' => 0.0, 'float-plus-one' => 1.0, 'float-greater-than-plus-one' => \PHP_FLOAT_EPSILON + $faker->randomFloat(null, 2)];
}
}
|
Mutation Tests (7.4, locked):
src/IntProvider.php#L94
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['int-less-than-minus-one' => -1 * $faker->numberBetween(1), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
+ return ['int-less-than-minus-one' => -2 * $faker->numberBetween(1), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
}
}
|
Mutation Tests (7.4, locked):
src/IntProvider.php#L94
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['int-less-than-minus-one' => -1 * $faker->numberBetween(1), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
+ return ['int-less-than-minus-one' => -1 * $faker->numberBetween(0), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
}
}
|
Mutation Tests (7.4, locked):
src/IntProvider.php#L94
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['int-less-than-minus-one' => -1 * $faker->numberBetween(1), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
+ return ['int-less-than-minus-one' => -1 * $faker->numberBetween(2), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
}
}
|
Mutation Tests (7.4, locked):
src/IntProvider.php#L98
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
private static function values() : array
{
$faker = self::faker();
- return ['int-less-than-minus-one' => -1 * $faker->numberBetween(1), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(1)];
+ return ['int-less-than-minus-one' => -1 * $faker->numberBetween(1), 'int-minus-one' => -1, 'int-zero' => 0, 'int-plus-one' => 1, 'int-greater-than-plus-one' => $faker->numberBetween(0)];
}
}
|