Problem/Motivation
debug()
can be helpful from time to time. Sadly its throwing an error which phpunit converts to an exception, which stops the processing of anything.
Proposed resolution
Allow Symfony's VarDumper component's dump() function to be used in tests as follows:
- Unit tests: dump() already works in these
- Kernel tests: allow dump() to work in both test code and SUT code
- Functional tests: dump() already works in SUT code (output is shown in HTML output from the SUT site). Allow dump() to work in test code
Remaining tasks
Do it.
User interface changes
None.
API changes
None.
Data model changes
None.