ixnode/php-phpunit-printer
最新稳定版本:0.1.4
Composer 安装命令:
composer require ixnode/php-phpunit-printer
包简介
PHPUnit Printer
README 文档
README
Overwrites the PHPUnit Printer with formatted output.
1) Installation
composer require --dev ixnode/php-phpunit-printer
vendor/bin/php-phpunit-printer -V
php-phpunit-printer 0.1.0 (02-04-2023 22:33:53) - Björn Hempel <bjoern@hempel.li>
2) Usage
After installing this Composer package, you can edit your phpunit.xml as follows:
<phpunit ... printerClass="Ixnode\PhpPhpunitPrinter\Printer" > ... </phpunit>
A complete phpunit.xml example could look like this:
<?xml version="1.0" encoding="UTF-8"?> <!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" colors="true" convertDeprecationsToExceptions="false" stopOnFailure="true" printerClass="Ixnode\PhpPhpunitPrinter\TestDoxPrinter" > <php> <ini name="display_errors" value="1"/> <ini name="error_reporting" value="-1"/> <server name="APP_ENV" value="test" force="true"/> <server name="SHELL_VERBOSITY" value="-1"/> <server name="SYMFONY_PHPUNIT_REMOVE" value=""/> <server name="SYMFONY_PHPUNIT_VERSION" value="9.5"/> <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> </php> <testsuites> <testsuite name="PHPUnit Test Suite"> <directory>tests</directory> </testsuite> </testsuites> <coverage processUncoveredFiles="true"> <include> </include> </coverage> </phpunit>
3.) Development
git clone git@github.com:ixnode/php-phpunit-printer.git && cd php-phpunit-printer
composer install
composer test
4.) License
This tool is licensed under the MIT License - see the LICENSE file for details
统计信息
- 总下载量: 622
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-05
