Skip to content
Newer
Older
100644 47 lines (27 sloc) 2.11 KB
d4a08a2 @sebastianbergmann Update installation instructions.
authored
1 # PHPUnit
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
2
d35d683 @sebastianbergmann Simplify
authored
3 PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
4
340a058 @sebastianbergmann Use shields.io badges
authored
5 [![Latest Stable Version](https://img.shields.io/packagist/v/phpunit/phpunit.svg?style=flat-square)](https://packagist.org/packages/phpunit/phpunit)
49ba9d2 @sebastianbergmann Merge branch '4.8' into 5.0
authored
6 [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg?style=flat-square)](https://php.net/)
764a68d @sebastianbergmann Merge branch '5.0'
authored
7 [![Build Status](https://img.shields.io/travis/sebastianbergmann/phpunit/master.svg?style=flat-square)](https://travis-ci.org/sebastianbergmann/phpunit)
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
8
d4a08a2 @sebastianbergmann Update installation instructions.
authored
9 ## Installation
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
10
e813a37 @sebastianbergmann Use HTTPS instead of HTTP
authored
11 We distribute a [PHP Archive (PHAR)](https://php.net/phar) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file:
d4a08a2 @sebastianbergmann Update installation instructions.
authored
12
3056e2f @sebastianbergmann Tweak
authored
13 ```bash
14 $ wget https://phar.phpunit.de/phpunit.phar
d4a08a2 @sebastianbergmann Update installation instructions.
authored
15
3056e2f @sebastianbergmann Tweak
authored
16 $ chmod +x phpunit.phar
17
18 $ mv phpunit.phar /usr/local/bin/phpunit
19 ```
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
20
7107e12 @sebastianbergmann Reorder/Update installation instructions
authored
21 You can also immediately use the PHAR after you have downloaded it, of course:
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
22
3056e2f @sebastianbergmann Tweak
authored
23 ```bash
24 $ wget https://phar.phpunit.de/phpunit.phar
25
26 $ php phpunit.phar
27 ```
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
28
e813a37 @sebastianbergmann Use HTTPS instead of HTTP
authored
29 Alternatively, you may use [Composer](https://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html) for details on how to do this.
7107e12 @sebastianbergmann Reorder/Update installation instructions
authored
30
d35d683 @sebastianbergmann Simplify
authored
31 ## Contribute
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
32
d35d683 @sebastianbergmann Simplify
authored
33 Please refer to [CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md) for information on how to contribute to PHPUnit and its related projects.
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
34
d4a08a2 @sebastianbergmann Update installation instructions.
authored
35 ## List of Contributors
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
36
37 Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components:
38
d4a08a2 @sebastianbergmann Update installation instructions.
authored
39 * [PHPUnit](https://github.com/sebastianbergmann/phpunit/graphs/contributors)
40 * [PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage/graphs/contributors)
41 * [PHPUnit_MockObject](https://github.com/sebastianbergmann/phpunit-mock-objects/graphs/contributors)
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
42
9bbecd2 @EagleEyeJohn Update README.md
EagleEyeJohn authored
43 A very special thanks to everyone who has contributed to the documentation and helps maintain the translations:
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
44
d4a08a2 @sebastianbergmann Update installation instructions.
authored
45 * [PHPUnit Documentation](https://github.com/sebastianbergmann/phpunit-documentation/graphs/contributors)
f634bc1 @sebastianbergmann Extract information on how to contribute into separate document.
authored
46
Something went wrong with that request. Please try again.