summaryrefslogtreecommitdiffstats
path: root/application/third_party/test-more-php/t/testertests_func_ok.php
blob: 1561faf91880dbdc34148c4f7decfbd80a5434bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php



    $lib = isset($_SERVER['TESTLIB']) ? $_SERVER['TESTLIB'] : 'Test-Simple.php';
    require_once($lib);

    print "# OK tests\n";
    print "# (No message for next test)\n";
    ok(1);
    ok(1,"1 is ok");
    ok(TRUE,"TRUE is ok");
    ok('string',"'string' is ok");

    print "# Not OK tests\n";
    print "# (No message for next test)\n";
    ok(0);
    ok(0,"0 is not ok");
    ok(FALSE,"FALSE is not ok");
    ok('',"'' is not ok");
    ok( NULL,"NULL is not ok");

    done_testing();
?>