PHPUnit_Html icon indicating copy to clipboard operation
PHPUnit_Html copied to clipboard

Does not work with PHPUnit 4.x

Open jhuckaby opened this issue 11 years ago • 0 comments

I cannot get PHPUnit_Html working with PHPUnit 4.0.14. The error I am seeing is:

26768845-460c-4a04-8e7b-3a8451a9e4ac

It looks like PHPUnit has undergone a radical design change from v3 to v4, and is no longer shipping with separate PHP class files. Everything is now bundled inside the "phpunit" binary executable. The recommended install instructions now include downloading a single file which is renamed to "phpunit" and becomes the binary executable. No external PHP class files are included.

http://phpunit.de/manual/current/en/installation.html#installation.phar

This means PHPUnit_Html can no longer load PHPUnit from inside PHP. Specifically, in main.php line 132, the "PHPUnit/Autoload.php" file no longer exists, because PHPUnit 4.x no longer installs it.

I've been through the PHPUnit installation instructions, including the "optional packages" section, and can find no way to include the files needed to make PHPUnit_Html work again. Any ideas?

Thanks in advance.

  • Joe

jhuckaby avatar Apr 09 '14 18:04 jhuckaby