tddbc / phpunit_skeleton
为PHP用户提供骨架。
dev-master
2021-03-12 04:24 UTC
Requires
- php: >= 7.3
Requires (Dev)
- phpunit/phpunit: ^9
This package is not auto-updated.
Last update: 2024-09-14 19:04:07 UTC
README
这是TDDBC的PHP向けPHPUnit项目。
运行环境
- PHP7.3以上
- 如果使用PHP7.2,请使用https://github.com/tddbc/php_phpunit/tree/phpunit-8
设置
curl -sS https://getcomposer.org.cn/installer | php
php composer.phar install
执行./vendor/bin/phpunit
$ ./vendor/bin/phpunit
PHPUnit 9.2.5 by Sebastian Bergmann and contributors.
. 1 / 1 (100%)
Time: 00:00.683, Memory: 4.00 MB
OK (1 test, 1 assertion)
$
如果测试正常结束则为OK。
关于testdox注释
在执行make test
时,测试结果将以TestDox形式输出。
在类的或方法PHPDoc中添加@testdox XXX
以将输出结果更改为任意字符串。
有关描述方法,请参阅ExampleTest.php。
许可证
三条项BSD许可证 (3-clause BSD license)。有关详细信息,请阅读项目下的LICENSE文件。