I'm hosting a project on an Ubuntu virtual machine but am doing all my code editing on Mac OS X, using osxfuse to mount the remote folder from the VM. Because of the filesystem mismatch, OS X is leaving ._*
files in my test directories.
Because these files end in *Test.php
, PHPUnit executes them, spitting the contents into stdout and obscuring useful debug info with a wall of special characters. In general, PHPUnit doesn't buffer non-test code by default, e.g.:
<?php /* NotATest.php */ ?>
In ur stdout
<?php
echo "killin ur unit... tests";
leads to:
$ phpunit .
In ur stdout
kill ur unit...testsPHPUnit 5.7.5 by Sebastian Bergmann and contributors.
I have seen this question about suppressing output for single test cases, but this level of output buffering would have to happen at a higher level. Similarly, the --disallow-test-output
option does nothing because the output is not encapsulated in a test. Is there any way to ignore output produced outside of test methods?