Add phpunit/phpunit as dev dependancy
Use  preg_replace_callback() instead of the /e modifier