File: README.md

package info (click to toggle)
phpunit 12.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 50,160 kB
  • sloc: php: 101,772; xml: 2,084; makefile: 124; sh: 99
file content (17 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# PHPUnit's Own Test Suite

## Test Suite Structure

This is the top-level directory structure of the `tests` directory:

* `tests/unit` holds tests that are "regular" PHPUnit tests (implemented using `PHPUnit\Framework\TestCase`)
* `tests/end-to-end` holds tests in the [PHPT](https://qa.php.net/phpt_details.php) format
* `tests/end-to-end/phar` holds PHAR-specific tests that are not part of the regular `end-to-end` tests
* `tests/_files` holds test fixture that is used by tests in `tests/unit` and/or `tests/end-to-end`

## Running the Test Suite

* `./phpunit` will run all tests from `tests/unit` and `tests/end-to-end` (except the PHAR-specific tests)
* `./phpunit --testsuite unit` will run all tests from `tests/unit`
* `./phpunit --testsuite end-to-end` will run all tests from `tests/end-to-end` (except the PHAR-specific tests)
* `ant phar-snapshot run-phar-specific-tests` will build a PHAR and run the PHAR-specific tests