https://github.com/gh640/phpunit-tap
A simple Composer package with a TAP result printer for PHPUnit.
https://github.com/gh640/phpunit-tap
php phpunit tap
Last synced: 22 days ago
JSON representation
A simple Composer package with a TAP result printer for PHPUnit.
- Host: GitHub
- URL: https://github.com/gh640/phpunit-tap
- Owner: gh640
- License: mit
- Created: 2017-09-03T10:47:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T02:01:35.000Z (about 5 years ago)
- Last Synced: 2025-03-20T16:49:10.693Z (about 1 month ago)
- Topics: php, phpunit, tap
- Language: PHP
- Homepage: https://packagist.org/packages/gh640/phpunit-tap
- Size: 280 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh640/phpunit-tap
[](https://travis-ci.org/gh640/phpunit-tap)
A simple Composer package which provides a TAP result printer for [PHPUnit](https://github.com/sebastianbergmann/phpunit).

## Usage
Install the package with Composer.
$ composer require --dev gh640/phpunit-tap
Specify the TAP result printer with the `--printer` option when running `phpunit`. The printer's FQCN is `gh640\PhpunitTap\TapResultPrinter`.
$ phpunit --printer gh640\PhpunitTap\TapResultPrinter [your test file]
You can pipe the output to your favorite TAP reporter/formatter. See also sindresorhus/awesome-tap | GitHub.
$ phpunit --printer gh640\PhpunitTap\TapResultPrinter [your test file] | tap-dot
$ phpunit --printer gh640\PhpunitTap\TapResultPrinter [your test file] | tap-nyan
$ phpunit --printer gh640\PhpunitTap\TapResultPrinter [your test file] | tap-notifyOr, you can omit the option `--printer` by adding the option into your `phpunit.xml`.
```xml
```
## Dependencies
This package depends on the following packages.
- `phpunit/phpunit`
- `symfony/yaml`For the detailed dependencies, please have a look at the Packagist page.
- gh640/phpunit-tap - Packagist
## Issues
If you find an issue, please file it in the issue queue.
Issues · gh640/phpunit-tap · GitHub
## Reference
- PHPUnit
- PHPUnit – The PHP Testing Framework
- TAP (Test Anything Protocol)
- Test Anything Protocol
- Test Anything Protocol - Wikipedia
- Other PHPUnit printers: You might be interested in the other PHPUnit printers.
- whatthejeff/nyancat-phpunit-resultprinter - Packagist
- memio/pretty-printer - Packagist
- thru.io/json-pretty-printer - Packagist
- kujira/phpunit-printer - Packagist
- scriptfusion/phpunit-immediate-exception-printer - Packagist
- diablomedia/phpunit-pretty-printer - Packagist
- zf2timo/phpunit-pretty-result-printer - Packagist## License
Licensed under the MIT license.