Skip to content

Commit

Permalink
Refactor test configuration and improve error handling.
Browse files Browse the repository at this point in the history
Updated PHPUnit environment settings to adjust deprecations handling and removed outdated entries in phpstan-baseline. Additionally, added a Symfony error handler in the test bootstrap for better exception management.
  • Loading branch information
Spomky committed Jan 3, 2025
1 parent f6e0bd9 commit 91dd44e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
29 changes: 14 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,37 +92,36 @@
"doctrine/doctrine-bundle": "^2.12",
"doctrine/orm": "^2.14|^3.0",
"doctrine/persistence": "^3.1|^4.0",
"ekino/phpstan-banned-code": "^1.0|^2.0|^3.0",
"ekino/phpstan-banned-code": "^3.0",
"infection/infection": "^0.29",
"matthiasnoback/symfony-dependency-injection-test": "^5.1 || ^6.0",
"matthiasnoback/symfony-dependency-injection-test": "^5.1|^6.0",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/extension-installer": "^1.3|^2.0",
"phpstan/phpstan": "^1.8|^2.0",
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
"phpstan/phpstan-doctrine": "^1.4|^2.0",
"phpstan/phpstan-phpunit": "^1.4|^2.0",
"phpstan/phpstan-strict-rules": "^1.4|^2.0",
"phpstan/phpstan-symfony": "^1.4|^2.0",
"phpunit/phpunit": "^10.1|^11.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-doctrine": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "^11.5",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.1",
"psr/http-message": "^2.0",
"qossmic/deptrac": "^2.0",
"rector/rector": "^1.0|^2.0",
"rector/rector": "^2.0",
"roave/security-advisories": "dev-latest",
"staabm/phpstan-todo-by": "^0.1.27|^0.2",
"struggle-for-php/sfp-phpstan-psr-log": "^0.21|^0.22|^0.23",
"staabm/phpstan-todo-by": "^0.2",
"struggle-for-php/sfp-phpstan-psr-log": "^0.23",
"symfony/asset": "^6.4|^7.0",
"symfony/asset-mapper": "^6.4|^7.0",
"symfony/browser-kit": "^6.4|^7.0",
"symfony/filesystem": "^6.4|^7.0",
"symfony/finder": "^6.4|^7.0",
"symfony/monolog-bundle": "^3.8",
"symfony/phpunit-bridge": "^6.4|^7.0",
"symfony/var-dumper": "^6.4|^7.0",
"symfony/yaml": "^6.4|^7.0",
"symplify/easy-coding-standard": "^12.0",
"web-token/jwt-library": "^3.4|^4.0"
"web-token/jwt-library": "^4.0"
},
"extra": {
"thanks": {
Expand Down
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
bootstrap="tests/bootstrap.php"
colors="true"
cacheDirectory=".phpunit.cache"
displayDetailsOnTestsThatTriggerDeprecations="true"
>
<coverage />
<testsuites>
Expand All @@ -18,8 +17,6 @@
<ini name="error_reporting" value="-1"/>
<server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<env name="APP_DEBUG" value="true"/>
<server name="KERNEL_CLASS" value="Webauthn\Tests\Bundle\Functional\AppKernel"/>
<ini name="memory_limit" value="-1"/>
</php>
Expand Down

0 comments on commit 91dd44e

Please sign in to comment.