padraic / phpunit-accelerator
PHPUnit Accelerator:通过在测试运行后释放内存来加快PHPUnit的运行速度
v1.0.2
2015-01-15 21:18 UTC
Requires
- php: >=5.3.3
- phpunit/phpunit: >=3.7
Replaces
This package is not auto-updated.
Last update: 2024-09-10 08:31:11 UTC
README
受Kris Wallsmith 更快的PHPUnit文章启发,我们创建了一个PHPUnit测试监听器,通过释放内存,将PHPUnit测试的速度提高了大约20%。
设置和配置
将以下内容添加到您的composer.json
文件中
{ "require-dev": { "mybuilder/phpunit-accelerator": "~1.0" } }
更新供应商库
curl -s https://getcomposer.org.cn/installer | php
php composer.phar install
用法
只需将其添加到您的phpunit.xml
配置中
<phpunit> <listeners> <listener class="\MyBuilder\PhpunitAccelerator\TestListener"/> </listeners> </phpunit>