-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom exception handler and update dependencies
Added a custom exception handler in a new autoload file under the tests directory. The PHPUnit bootstrap configuration was updated to use the new autoload file. Also, the dependency 'matthiasnoback/symfony-config-test' was switched to a 'dev-phpunit-11' version and the source repository for this dependency was added under the 'repositories' section in composer.json.
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ | |
"ekino/phpstan-banned-code": "^1.0", | ||
"ergebnis/phpunit-slow-test-detector": "^2.14", | ||
"infection/infection": "^0.28|^0.29", | ||
"matthiasnoback/symfony-config-test": "^5.0", | ||
"matthiasnoback/symfony-config-test": "dev-phpunit-11", | ||
"paragonie/sodium_compat": "^1.20|^2.0", | ||
"php-parallel-lint/php-parallel-lint": "^1.3", | ||
"phpbench/phpbench": "^1.2", | ||
|
@@ -118,5 +118,11 @@ | |
"php-http/discovery": true, | ||
"infection/extension-installer": false | ||
} | ||
}, | ||
"repositories": { | ||
"wickedOne_SymfonyConfigTest": { | ||
"type": "vcs", | ||
"url": "[email protected]:wickedOne/SymfonyConfigTest.git" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\ErrorHandler\ErrorHandler; | ||
|
||
require dirname(__DIR__).'/vendor/autoload.php'; | ||
|
||
set_exception_handler([new ErrorHandler(), 'handleException']); |