Difference between revisions 2031635 and 2031636 on mediawikiwiki

{{Manual:PHP_unit_testing/navigation}}

You must have PHPUnit 3.7.0 (or later) installed to run the unit tests. Most developers use the very latest PHPUnit version, so there is no guarantee an older one will actually pass the tests we wrote.

{{notice|
Depending on your distribution and configuration, you may have to run the following commands as root.
}}

== Install methods ==
Several methods are available to you. Note the [[#Known issues|known issue below]]. The Debian/Ubuntu package is broken.

The [http://phpunit.de/manual/current/en/installation.html recommended way to install PHPUnit] is by downloading a PHP Archive (PHAR file). With the resolution of [[bugzilla:58881|bug 58881]], this should work now.

== Testing your installation ==

<source lang="bash">
$ which phpunit
(contracted; show full)
If you get the error...
 This version of PHPUnit requires PHP 5.6.
...you either need to upgrade PHP or downgrade PHPUnit. PHPUnit 4.8 is compatible with PHP 5.5 and earlier.

== Notes ==

<references />