yidas/phpunit-sample

PHPUnit 的演示

1.1.0 2018-04-30 02:53 UTC

This package is auto-updated.

Last update: 2024-09-10 20:35:18 UTC


README

PHPUnit 的演示

安装

使用 Composer 创建项目

composer create-project --prefer-dist --stability=dev yidas/phpunit-sample

用法

在此库的根目录中,从 vendor 运行 phpunit

./vendor/bin/phpunit

然后结果将如下所示

PHPUnit 5.6.4 by Sebastian Bergmann and contributors.

...                                                                 3 / 3 (100%)

Time: 32 ms, Memory: 3.50MB

OK (3 tests, 3 assertions)

目录结构

src/      Source component classes
tests/    Test cases

文档