Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
4458a43
[CI] Prepare migration to PHPUnit >= 11
Kocal Nov 18, 2025
22bc86a
[Autocomplete] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 18, 2025
ba7d268
[Chartjs] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 18, 2025
871a60f
[Cropperjs] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 18, 2025
f5c1b6d
[Dropzone] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
cbc0f2c
[Icons] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
18fbdf9
[LiveComponent] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
0b6a1a6
[Map] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
c4ecc6f
[Notify] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
aa484e0
[React] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
5bd2f3e
[StimulusBundle] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
d451bd8
[Svelte] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
0d89567
[Toolkit] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
a8b1002
[Translator] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
64405b7
[Turbo] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
194b716
[TwigComponent] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
b91e729
[Vue] Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0
Kocal Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ jobs:
echo COLUMNS=120 >> $GITHUB_ENV
echo COMPOSER_MIN_STAB='composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }} --ansi' >> $GITHUB_ENV
echo COMPOSER_UP='composer update ${{ matrix.dependency-version == 'lowest' && '--prefer-lowest' || '' }} --no-progress --no-interaction --ansi' >> $GITHUB_ENV
echo PHPUNIT_INSTALL='vendor/bin/simple-phpunit install' >> $GITHUB_ENV
echo PHPSTAN='vendor/bin/phpstan' >> $GITHUB_ENV
# TODO: Only Turbo has PHPStan configuration, let's improve this later :)
Expand Down Expand Up @@ -211,4 +210,4 @@ jobs:
run: |
source .github/workflows/.utils.sh
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_MIN_STAB && $COMPOSER_UP && $PHPUNIT_INSTALL && $PHPSTAN)'"
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_MIN_STAB && $COMPOSER_UP && $PHPSTAN)'"
2 changes: 1 addition & 1 deletion .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ jobs:
working-directory: src/Turbo
run: |
[ 'lowest' = '${{ matrix.dependency-version }}' ] && export SYMFONY_DEPRECATIONS_HELPER=weak
vendor/bin/simple-phpunit
vendor/bin/phpunit
env:
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=1'
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
echo COLUMNS=120 >> $GITHUB_ENV
echo COMPOSER_MIN_STAB='composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }} --ansi' >> $GITHUB_ENV
echo COMPOSER_UP='composer update ${{ matrix.dependency-version == 'lowest' && '--prefer-lowest' || '' }} --no-progress --no-interaction --ansi' >> $GITHUB_ENV
echo PHPUNIT='vendor/bin/simple-phpunit ${{ matrix.dependency-version == 'lowest' && '--exclude-group skip-on-lowest' || '' }} ${{ matrix.os == 'windows-latest' && '--exclude-group transient-on-windows' || '' }}' >> $GITHUB_ENV
echo PHPUNIT='vendor/bin/phpunit ${{ matrix.dependency-version == 'lowest' && '--exclude-group skip-on-lowest' || '' }} ${{ matrix.os == 'windows-latest' && '--exclude-group transient-on-windows' || '' }}' >> $GITHUB_ENV
[ 'lowest' = '${{ matrix.dependency-version }}' ] && export SYMFONY_DEPRECATIONS_HELPER=weak
# Turbo has its own workflow file
Expand Down
3 changes: 2 additions & 1 deletion src/Autocomplete/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/vendor/
/composer.lock
/phpunit.xml
/.phpunit.result.cache
/.phpunit.cache

/var
/config/reference.php
4 changes: 2 additions & 2 deletions src/Autocomplete/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
"doctrine/orm": "^2.9.4|^3.0",
"fakerphp/faker": "^1.22",
"mtdowling/jmespath.php": "^2.6",
"phpunit/phpunit": "^11.1|^12.0",
"symfony/form": "^7.2|^8.0",
"symfony/options-resolver": "^6.4|^7.0|^8.0",
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
"symfony/maker-bundle": "^1.40",
"symfony/phpunit-bridge": "^7.2|^8.0",
"symfony/process": "^6.4|^7.0|^8.0",
"symfony/security-bundle": "^6.4|^7.0|^8.0",
"symfony/twig-bundle": "^6.4|^7.0|^8.0",
"symfony/uid": "^6.4|^7.0|^8.0",
"twig/twig": "^2.14.7|^3.0.4",
"zenstruck/browser": "^1.1",
"zenstruck/browser": "^1.9",
"zenstruck/foundry": "^2.0"
},
"conflict": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
failOnDeprecation="true"
failOnRisky="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache"
>
<php>
<ini name="error_reporting" value="-1"/>
<env name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>

<env name="KERNEL_CLASS" value="Symfony\UX\Autocomplete\Tests\Fixtures\Kernel"/>
<env name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db"/>
</php>
Expand All @@ -22,13 +24,18 @@
</testsuite>
</testsuites>

<coverage>
<source
ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory>./src</directory>
<directory>src</directory>
</include>
</coverage>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
<deprecationTrigger>
<function>trigger_deprecation</function>
</deprecationTrigger>
</source>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@

namespace Symfony\UX\Autocomplete\Tests\Unit\Form;

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symfony\UX\Autocomplete\Form\AsEntityAutocompleteField;
use Symfony\UX\Autocomplete\Tests\Fixtures\Form\ProductType;

class AsEntityAutocompleteFieldTest extends TestCase
{
/**
* @dataProvider provideClassNames
*/
#[DataProvider('provideClassNames')]
public function testShortName(string $shortName, string $className)
{
$this->assertEquals($shortName, AsEntityAutocompleteField::shortName($className));
Expand Down
17 changes: 17 additions & 0 deletions src/Autocomplete/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Symfony\Component\ErrorHandler\ErrorHandler;

require __DIR__.'/../vendor/autoload.php';

// @see https://github.com/symfony/symfony/issues/53812
ErrorHandler::register(null, false);
2 changes: 1 addition & 1 deletion src/Chartjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/vendor/
/composer.lock
/phpunit.xml
/.phpunit.result.cache
/.phpunit.cache
2 changes: 1 addition & 1 deletion src/Chartjs/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"symfony/stimulus-bundle": "^2.9.1"
},
"require-dev": {
"phpunit/phpunit": "^11.1|^12.0",
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
"symfony/phpunit-bridge": "^7.2|^8.0",
"symfony/twig-bundle": "^6.4|^7.0|^8.0",
"symfony/var-dumper": "^6.4|^7.0|^8.0"
},
Expand Down
24 changes: 15 additions & 9 deletions src/Chartjs/phpunit.xml.dist → src/Chartjs/phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
failOnDeprecation="true"
failOnRisky="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache"
>
<php>
<ini name="error_reporting" value="-1"/>
<env name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
</php>

<testsuites>
Expand All @@ -20,13 +21,18 @@
</testsuite>
</testsuites>

<coverage>
<source
ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory>./src</directory>
<directory>src</directory>
</include>
</coverage>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
<deprecationTrigger>
<function>trigger_deprecation</function>
</deprecationTrigger>
</source>
</phpunit>
17 changes: 17 additions & 0 deletions src/Chartjs/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Symfony\Component\ErrorHandler\ErrorHandler;

require __DIR__.'/../vendor/autoload.php';

// @see https://github.com/symfony/symfony/issues/53812
ErrorHandler::register(null, false);
2 changes: 1 addition & 1 deletion src/Cropperjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/vendor/
/composer.lock
/phpunit.xml
/.phpunit.result.cache
/.phpunit.cache
2 changes: 1 addition & 1 deletion src/Cropperjs/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"symfony/validator": "^6.4|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^11.1|^12.0",
"symfony/expression-language": "^6.4|^7.0|^8.0",
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
"symfony/phpunit-bridge": "^7.2|^8.0",
"symfony/twig-bundle": "^6.4|^7.0|^8.0",
"symfony/var-dumper": "^6.4|^7.0|^8.0",
"twig/twig": "^2.14.7|^3.0.4"
Expand Down
24 changes: 15 additions & 9 deletions src/Cropperjs/phpunit.xml.dist → src/Cropperjs/phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
failOnDeprecation="true"
failOnRisky="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache"
>
<php>
<ini name="error_reporting" value="-1"/>
<env name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
</php>

<testsuites>
Expand All @@ -20,13 +21,18 @@
</testsuite>
</testsuites>

<coverage>
<source
ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory>./src</directory>
<directory>src</directory>
</include>
</coverage>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
<deprecationTrigger>
<function>trigger_deprecation</function>
</deprecationTrigger>
</source>
</phpunit>
5 changes: 2 additions & 3 deletions src/Cropperjs/tests/CropperjsBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Symfony\UX\Cropperjs\Tests;

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\UX\Cropperjs\Tests\Kernel\EmptyAppKernel;
Expand All @@ -31,9 +32,7 @@ public static function provideKernels()
yield 'twig' => [new TwigAppKernel('test', true)];
}

/**
* @dataProvider provideKernels
*/
#[DataProvider('provideKernels')]
public function testBootKernel(Kernel $kernel)
{
$kernel->boot();
Expand Down
17 changes: 17 additions & 0 deletions src/Cropperjs/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Symfony\Component\ErrorHandler\ErrorHandler;

require __DIR__.'/../vendor/autoload.php';

// @see https://github.com/symfony/symfony/issues/53812
ErrorHandler::register(null, false);
2 changes: 1 addition & 1 deletion src/Dropzone/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/vendor/
/composer.lock
/phpunit.xml
/.phpunit.result.cache
/.phpunit.cache
2 changes: 1 addition & 1 deletion src/Dropzone/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"symfony/options-resolver": "^6.4|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^11.1|^12.0",
"symfony/framework-bundle": "^6.4|^7.0|^8.0",
"symfony/phpunit-bridge": "^7.2|^8.0",
"symfony/twig-bundle": "^6.4|^7.0|^8.0",
"symfony/var-dumper": "^6.4|^7.0|^8.0",
"twig/twig": "^2.14.7|^3.0.4"
Expand Down
25 changes: 16 additions & 9 deletions src/Dropzone/phpunit.xml.dist → src/Dropzone/phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
failOnDeprecation="true"
failOnRisky="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache"
>
<php>
<ini name="error_reporting" value="-1"/>
<env name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
</php>

<testsuites>
Expand All @@ -20,13 +21,19 @@
</testsuite>
</testsuites>

<coverage>

<source
ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory>./src</directory>
<directory>src</directory>
</include>
</coverage>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
<deprecationTrigger>
<function>trigger_deprecation</function>
</deprecationTrigger>
</source>
</phpunit>
Loading
Loading