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



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

    diag('Should fail 3 of 5 tests');

    ok(1, "Pass one");

    include_ok('missing.php','Including a missing file should be not ok');

    include_ok('badlib.php','Including a file with bad syntax should be not ok');

    include_ok('borklib.php','Including a file with non-syntactical errors should be not ok');

    ok(1, 'Continue testing after failed include');

?>