Update dependency matthiasnoback/symfony-dependency-injection-test to v6 - autoclosed #1591
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run mutation tests with pcov and infection/infection:
src/Extension/StringExtension.php#L25
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
{
public function getFilters(): array
{
- return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], ['is_safe' => ['html']])];
+ return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], [])];
}
}
|
Run mutation tests with pcov and infection/infection:
src/Extension/StringExtension.php#L26
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
{
public function getFilters(): array
{
- return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], ['is_safe' => ['html']])];
+ return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], ['is_safe' => []])];
}
}
|
Run mutation tests with pcov and infection/infection:
src/Extension/UrlAutoConverterExtension.php#L23
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
{
public function getFilters(): array
{
- return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => ['html']])];
+ return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => []])];
}
}
|
Run mutation tests with pcov and infection/infection:
src/Extension/UrlAutoConverterExtension.php#L23
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
{
public function getFilters(): array
{
- return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => ['html']])];
+ return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], [])];
}
}
|
Run mutation tests with pcov and infection/infection:
src/Runtime/RouterRuntime.php#L34
Escaped Mutant for Mutator "UnwrapTrim":
@@ @@
*/
public function splitTag(string $text, string $tag): array
{
- if ('' === trim($tag)) {
+ if ('' === $tag) {
return [$text];
}
$split = preg_split('/(?=<' . $tag . '([^>])*>)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
|
Run mutation tests with pcov and infection/infection:
src/Runtime/RouterRuntime.php#L40
Escaped Mutant for Mutator "FalseValue":
@@ @@
return [$text];
}
$split = preg_split('/(?=<' . $tag . '([^>])*>)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
- if (false !== $split) {
+ if (true !== $split) {
return $split;
}
return [$text];
}
}
|
Run mutation tests with pcov and infection/infection:
src/Runtime/StringRuntime.php#L42
Escaped Mutant for Mutator "TrueValue":
@@ @@
$this->mailAtText = $mailAtText;
$this->mailDotText = $mailDotText;
}
- public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 0, ?string $locale = null): string
+ public function formatBytes(float $bytes, bool $si = false, int $fractionDigits = 0, ?string $locale = null): string
{
if (null === $locale) {
$locale = Locale::getDefault();
|
Run mutation tests with pcov and infection/infection:
src/Runtime/StringRuntime.php#L42
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
$this->mailAtText = $mailAtText;
$this->mailDotText = $mailDotText;
}
- public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 0, ?string $locale = null): string
+ public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = -1, ?string $locale = null): string
{
if (null === $locale) {
$locale = Locale::getDefault();
|
Run mutation tests with pcov and infection/infection:
src/Runtime/StringRuntime.php#L42
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$this->mailAtText = $mailAtText;
$this->mailDotText = $mailDotText;
}
- public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 0, ?string $locale = null): string
+ public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 1, ?string $locale = null): string
{
if (null === $locale) {
$locale = Locale::getDefault();
|
Run mutation tests with pcov and infection/infection:
src/Runtime/StringRuntime.php#L48
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
if (null === $locale) {
$locale = Locale::getDefault();
}
- $unit = $si ? 1000 : 1024;
+ $unit = $si ? 999 : 1024;
if ($bytes < $unit) {
$prefix = '';
$number = $bytes;
|
Loading