PHPUnit

eyecatch

php vendor/bin/phpunit –coverage-html coverage

と PHPUnit を走らせると

Generating code coverage report in HTML format … syntax error, unexpected ‘new’ (T_NEW)

というエラーが出るのは何故……しかもカバレッジ出力時のみエラーになり、カバレッジなしだと正常終了するという。