diff --git a/phpstan.neon b/phpstan.neon index c0061da49f3ef50bdc30846b871da69d21c94a8b..a0f2301d23b15d2b2354aafc7c82215fabd8d740 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -8,6 +8,6 @@ parameters: - src - tests bootstrapFiles: - - vendor/bin/.phpunit/phpunit-8-0/vendor/autoload.php + - vendor/bin/.phpunit/phpunit-9-0/vendor/autoload.php excludes_analyse: - tests/bootstrap.php \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 069b8ca410c111e7600cbca494f6ebc7b497b1d4..d908cdda3125109f1bf4bbc1d24a7ade330a4191 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,34 +1,25 @@ <?xml version="1.0" encoding="UTF-8"?> - <!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> -<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd" - backupGlobals="false" - colors="true" - bootstrap="tests/bootstrap.php" -> - <php> - <ini name="error_reporting" value="-1" /> - <server name="APP_ENV" value="test" force="true" /> - <server name="SHELL_VERBOSITY" value="-1" /> - <server name="SYMFONY_PHPUNIT_REMOVE" value="" /> - <server name="SYMFONY_PHPUNIT_VERSION" value="8" /> - </php> - - <testsuites> - <testsuite name="Project Test Suite"> - <directory>tests</directory> - </testsuite> - </testsuites> - - <filter> - <whitelist> - <directory>src</directory> - <directory>tests</directory> - </whitelist> - </filter> - - <listeners> - <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> - </listeners> +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php"> + <coverage> + <include> + <directory>src</directory> + <directory>tests</directory> + </include> + </coverage> + <php> + <ini name="error_reporting" value="-1"/> + <server name="APP_ENV" value="test" force="true"/> + <server name="SHELL_VERBOSITY" value="-1"/> + <server name="SYMFONY_PHPUNIT_REMOVE" value=""/> + <server name="SYMFONY_PHPUNIT_VERSION" value="9"/> + </php> + <testsuites> + <testsuite name="Project Test Suite"> + <directory>tests</directory> + </testsuite> + </testsuites> + <listeners> + <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/> + </listeners> </phpunit>