walf443/test_tap

php port of perl's Test::More

v0.0.1 2012-03-30 00:50 UTC

This package is not auto-updated.

Last update: 2024-04-21 01:03:19 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