walf443 / test_tap
php port of perl's Test::More
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/walf443/test_tap
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-12-28 08:29:29 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