Update dependency symfony/phpunit-bridge to v7 #1531
continuous-integration.yml
on: pull_request
run
/
Generate test matrix
4s
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Annotations
15 errors and 10 warnings
run / Test: PHP 8.2, Symfony 5.4, highest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires symfony/browser-kit ^7.0 -> satisfiable by symfony/browser-kit[v7.0.0].
- symfony/browser-kit v7.0.0 requires symfony/dom-crawler ^6.4|^7.0 -> found symfony/dom-crawler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- Root composer.json requires symfony/config ^7.0 -> satisfiable by symfony/config[v7.0.0].
- symfony/config v7.0.0 requires symfony/filesystem ^6.4|^7.0 -> found symfony/filesystem[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 3
- Root composer.json requires symfony/expression-language ^7.0 -> satisfiable by symfony/expression-language[v7.0.0].
- symfony/expression-language v7.0.0 requires symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 4
- Root composer.json requires symfony/framework-bundle ^7.0 -> satisfiable by symfony/framework-bundle[v7.0.0, v7.0.1].
- symfony/framework-bundle[v7.0.0, ..., v7.0.1] require symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 5
- Root composer.json requires symfony/http-kernel ^7.0 -> satisfiable by symfony/http-kernel[v7.0.0, v7.0.1].
- symfony/http-kernel[v7.0.0, ..., v7.0.1] require symfony/error-handler ^6.4|^7.0 -> found symfony/error-handler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 6
- Root composer.json requires symfony/twig-bundle ^7.0 -> satisfiable by symfony/twig-bundle[v7.0.0].
- symfony/twig-bundle v7.0.0 requires symfony/http-foundation ^6.4|^7.0 -> found symfony/http-foundation[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
|
run / Test: PHP 8.2, Symfony 5.4, highest)
Process completed with exit code 2.
|
run / Test: PHP 8.3, Symfony 6.3, highest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.2, Symfony 5.4, lowest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires symfony/browser-kit ^7.0 -> satisfiable by symfony/browser-kit[v7.0.0].
- symfony/browser-kit v7.0.0 requires symfony/dom-crawler ^6.4|^7.0 -> found symfony/dom-crawler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- Root composer.json requires symfony/config ^7.0 -> satisfiable by symfony/config[v7.0.0].
- symfony/config v7.0.0 requires symfony/filesystem ^6.4|^7.0 -> found symfony/filesystem[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 3
- Root composer.json requires symfony/expression-language ^7.0 -> satisfiable by symfony/expression-language[v7.0.0].
- symfony/expression-language v7.0.0 requires symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 4
- Root composer.json requires symfony/framework-bundle ^7.0 -> satisfiable by symfony/framework-bundle[v7.0.0, v7.0.1].
- symfony/framework-bundle[v7.0.0, ..., v7.0.1] require symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 5
- Root composer.json requires symfony/http-kernel ^7.0 -> satisfiable by symfony/http-kernel[v7.0.0, v7.0.1].
- symfony/http-kernel[v7.0.0, ..., v7.0.1] require symfony/error-handler ^6.4|^7.0 -> found symfony/error-handler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 6
- Root composer.json requires symfony/twig-bundle ^7.0 -> satisfiable by symfony/twig-bundle[v7.0.0].
- symfony/twig-bundle v7.0.0 requires symfony/http-foundation ^6.4|^7.0 -> found symfony/http-foundation[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
|
run / Test: PHP 8.2, Symfony 5.4, lowest)
Process completed with exit code 2.
|
run / Test: PHP 8.3, Symfony 6.3, lowest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.3, lowest)
The operation was canceled.
|
run / Test: PHP 8.3, Symfony 5.4, highest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 5.4, highest)
The operation was canceled.
|
run / Test: PHP 8.2, Symfony 6.3, lowest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.2, Symfony 6.3, lowest)
A task was canceled.
|
run / Test: PHP 8.2, Symfony 6.3, highest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.2, Symfony 6.3, highest)
The operation was canceled.
|
run / Test: PHP 8.3, Symfony 5.4, lowest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 5.4, lowest)
A task was canceled.
|
run / Mutation Tests (8.3):
src/Extension/UrlAutoConverterExtension.php#L23
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
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 (8.3):
src/Extension/UrlAutoConverterExtension.php#L23
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
public function getFilters() : array
{
- return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => ['html']])];
+ return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], [])];
}
}
|
run / Mutation Tests (8.3):
src/Runtime/RouterRuntime.php#L34
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
*/
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 (8.3):
src/Runtime/RouterRuntime.php#L40
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
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 (8.3):
src/Runtime/StringRuntime.php#L19
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
use Twig\Extension\RuntimeExtensionInterface;
final class StringRuntime implements RuntimeExtensionInterface
{
- 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 (8.3):
src/Runtime/StringRuntime.php#L19
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
use Twig\Extension\RuntimeExtensionInterface;
final class StringRuntime implements RuntimeExtensionInterface
{
- 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 (8.3):
src/Runtime/StringRuntime.php#L19
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
use Twig\Extension\RuntimeExtensionInterface;
final class StringRuntime implements RuntimeExtensionInterface
{
- 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 (8.3):
src/Runtime/StringRuntime.php#L25
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (null === $locale) {
$locale = Locale::getDefault();
}
- $unit = $si ? 1000 : 1024;
+ $unit = $si ? 999 : 1024;
if ($bytes < $unit) {
$prefix = '';
$number = $bytes;
|
run / Mutation Tests (8.3):
src/Runtime/StringRuntime.php#L25
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (null === $locale) {
$locale = Locale::getDefault();
}
- $unit = $si ? 1000 : 1024;
+ $unit = $si ? 1000 : 1023;
if ($bytes < $unit) {
$prefix = '';
$number = $bytes;
|
run / Mutation Tests (8.3):
src/Runtime/StringRuntime.php#L38
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$number = $bytes / $unit ** $exp;
}
$formatter = new NumberFormatter($locale, NumberFormatter::DECIMAL);
- $formatter->setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, $fractionDigits);
+
$formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, $fractionDigits);
return sprintf('%s %sB', $formatter->format($number, NumberFormatter::TYPE_DEFAULT), $prefix);
}
|