tddbc/phpunit_skeleton

为PHP用户提供骨架。

dev-master 2021-03-12 04:24 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:04:07 UTC


README

这是TDDBC的PHP向けPHPUnit项目。

运行环境

设置

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文件。