walf443 / test_tap
Perl的Test::More的PHP端口
v0.0.1
2012-03-30 00:50 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-22 02:55:57 UTC
README
TestTap - php port of perl's Test::More.
Example:
you wrote test code.
$t = new TestTAP();
$t->ok(1==0, "failed test");
$t->is(1, 0, "1 should be 0");
$t->subtest("categorize test", function($t) {
$t->ok(0==1, "It's subtest");
});
$t->done_testing(); # you should call at last.
and you run
$ php test.php
If you want to customize more output, use perl's Test::Harnesse's prove command.
$ prove -v --exec=php -r test/*.php