Testify

Testify(Testify.php) 是个极小的 PHP 5.3+ 单元测试框架。 代码示例: require 'vendor/autoload.php'; use Math\MyCalc; use Testify\Testify;$tf = new Testify("MyCalc Test Suite");$tf->beforeEach(function($tf) { $tf->data->calc = new MyCalc(10);});$tf->test("Testing the add() method", function($tf) { $calc = $tf->data->calc; $calc->add(4); $tf->assert($calc->result() == 14); $calc->add(-6); $tf->asse...

加载中
加载中

{{o.href}}

{{o.content | formatHtml}}

{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}

暂无相关内容

返回顶部
顶部