4b24544cda
PHPUnit has built in support for testing if PHP errors are thrown by looking for special exception classes: PHPUnit_Framework_Error PHPUnit_Framework_Warning PHPUnit_Framework_Notice This support is only enabled if no other error handlers are registered. The Symfony kernel registers an error handler by default, thus disabling PHPUnit's special PHP error exceptions if the kernel has been booted. This commit adds support for a new configuration parameter, error_handler.enable, which can prevent the Symfony error handler from registering if set to false. After this commit, by default the error handler will be disabled in the test environment. To enable it, add the following to your config_test.yml: parameters: error_handler.enable: true |
||
---|---|---|
.. | ||
Symfony/Tests | ||
bootstrap.php |