somewhere somehow i begun to get a dot with 4 spaces inside PHPUnit's progress bar and i don't understand how to set it back to normal. It's PHPUnit only, other shell scripts go ok. It looks like this
. . . . . . . . . [...] 100 / 100 (100%)
Problem is not only with local machine because when i run the test on other machine, it also generates same progress bar with spaces between progress dots.
Maybe anybody has the clue where to fix it.
Some background information (but since i am getting same spaces on two different configurations, its something with files/phpunit and not dev env):
~/> php ../bin/phpunit.phar -c phpunit.xml
phpunit.xml:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="bootstrap/autoload.php" processIsolation="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./app/tests/</directory>
</testsuite>
</testsuites>
</phpunit>
Freaking out. Its UTF-8 everywhere, PHPUnit doesn't have config for progress bar. what is happening.
EDIT/RESOLUTION:
Thanks to @Sven for the tip. Debugging the test step by step helped - i had lame \t char in the beginning of the db mock config file which is included as part of ::setUp(). To justify myself I just hope that anybody else will get here via google and find this annoying, yet tricky question useful.
You probably echo out some spaces somewhere.
For me, i was autoloading a config file that had a single leading space before the opening <?php
tag
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With