Fix PHPUnit environment for build