s1ptex/uniter

快速创建单元测试的包

dev-main 2023-07-29 19:14 UTC

This package is auto-updated.

Last update: 2024-09-29 21:39:09 UTC


README

安装

composer require s1ptex/uniter

用法

首先您需要创建测试集

$Cortege = new \S1ptex\Uniter\Cortege("Test cortege");

现在添加测试

$Cortege->add("One plus One is Two", function(\S1ptex\Uniter\Test $test){

  $test->assert(1+1 === 2);

});

打印测试集

$Cortege->execute();

让我们运行

php8.1 name_of_file.php