diff --git a/.gitignore b/.gitignore index 7c04f2c..62b3d00 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,7 @@ composer.lock /public/assets/ /assets/vendor/ ###< symfony/asset-mapper ### + +###> phpunit/phpunit ### +/.phpunit.cache/ +###< phpunit/phpunit ### diff --git a/composer.json b/composer.json index 3ee5c0d..b972156 100644 --- a/composer.json +++ b/composer.json @@ -51,6 +51,7 @@ "twig/twig": "^3.0" }, "require-dev": { + "phpunit/phpunit": "*", "symfony/browser-kit": "*", "symfony/css-selector": "*", "symfony/debug-bundle": "*", diff --git a/phpunit.dist.xml b/phpunit.dist.xml new file mode 100644 index 0000000..22bd879 --- /dev/null +++ b/phpunit.dist.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + tests + + + + + + src + + + + Doctrine\Deprecations\Deprecation::trigger + Doctrine\Deprecations\Deprecation::delegateTriggerToBackend + trigger_deprecation + + + + + + diff --git a/symfony.lock b/symfony.lock index c8345e0..2f9b1e9 100644 --- a/symfony.lock +++ b/symfony.lock @@ -104,6 +104,21 @@ "phpdocumentor/type-resolver": { "version": "1.5.1" }, + "phpunit/phpunit": { + "version": "12.2", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "main", + "version": "11.1", + "ref": "c6658a60fc9d594805370eacdf542c3d6b5c0869" + }, + "files": [ + ".env.test", + "phpunit.dist.xml", + "tests/bootstrap.php", + "bin/phpunit" + ] + }, "psr/cache": { "version": "3.0.0" },