【文件属性】:
文件名称:booster:使测试运行得更快
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-27 12:14:35
PHP
助推器
介绍
Booster 是一组工具,可以让您的 PHP 和/或 Symfony 测试运行得更快并使用更少的内存。
安装
安装此库的推荐方法是通过 :
$ composer require driebit/booster
此命令要求您全局安装 Composer,如 Composer 文档的中所述。
用法
拆除时为空属性
在测试拆除时清空类属性有助于减少内存占用和测试运行时间。 例如在使用 PHPUnit 时:
use Driebit \ Booster \ Cleaner ;
class MyTest extends \ PHPUnit_Framework_TestCase
{
// tests here...
protected function tearDown ()
{
// tear down actions here...
【文件预览】:
booster-master
----.gitignore(22B)
----README.md(2KB)
----tests()
--------PhpUnit()
--------CleanerTest.php(992B)
----LICENSE(1KB)
----composer.json(607B)
----phpunit.xml.dist(413B)
----src()
--------PhpUnit()
--------Cleaner.php(1KB)
--------Symfony()
----.travis.yml(287B)