Question: When I run phpunit from a command line, the control characters are being printed out instead of acting like control characters. Take look at this:

```
PHPUnit 3.6.5 by Sebastian Bergmann.

Configuration read from app\phpunit.xml.dist

...

Time: 1 second, Memory: 12.00Mb

‹[30;42m‹[2KOK (3 tests, 3 assertions)
‹[0m‹[2K

```

I assume that signs like `‹[30;42m<` are some kind of control characters and should be used by console in different way (positioning the cursor, deleting characters etc.)

What can be wrong here?

Answer: 
Alternatively, just use <https://github.com/adoxa/ansicon/releases> to get ansi colors on windows.

Source code: <https://github.com/adoxa/ansicon>
Just like what they said, this worked for me.

Go to .bashrc in your ~/ directory and add

```
alias phpunitc="phpunit "$@" 2>&1 | perl -pe 's/(?<=\e\[)2;//g'"

```

Then I just use phpunitc in git bash. All parameters you send to phpunit will also pass through.