I'm currently working on some debugging in my PHPUnit tests, and I'm encountering an issue that I can't seem to figure out. Whenever I try to dump variables using var_dump() or print_r() within my test methods, the test fails and I get the error message "Test was run in child process and ended unexpectedly."
I've searched the web for possible solutions, but I haven't been able to find anything that addresses this specific issue. It's a bit frustrating because I rely on dumping variables to understand what's going on in my code during testing.
Has anyone else encountered this problem before? If so, how did you manage to solve it? Is there an alternative way to dump variables in PHPUnit tests without causing this issue?
Any help or guidance would be greatly appreciated. Thanks in advance!