Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:PHPUnit installation in OS X

From MoodleDocs

This info seems to be outdated. On OS X 10.8 I only had to add "detect_unicode = off" to my php.ini and then follow the normal PHPUnit via/ Composer instructions.