theodo/phpunit-extra
Composer 安装命令:
composer require theodo/phpunit-extra
包简介
PHP library which improves PHPUnit test suite performance
README 文档
README
PHPUnit Extra provides a PHPUnit listener to improve performance of your PHPUnit test suites by cleaning up classes variables at the end of each TestCase. Thanks Kris Wallsmith for this tip.
Installation
Step 1: Install the library
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require --dev theodo/phpunit-extra
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Configure the listener in PHPUnit
For PHPUnit >= 7.5, add the extension in your XML config file (e.g. phpunit.xml.dist).
<extensions> <extension class="\Theodo\PHPUnitExtra\PHPUnit\PHPUnitExtension" /> </extensions>
For PHPUnit < 7.5 add the listener in your XML config file (e.g. phpunit.xml.dist).
<listeners> <listener class="\Theodo\PHPUnitExtra\PHPUnit\PHPUnitListener" /> </listeners>
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-18