summaryrefslogtreecommitdiffstats
path: root/application/third_party/test-more-php/t/testertests_include_ok_fatal.php
blob: 982cd5cafd5b8c25e5a6e95f8c363b8e4603b407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php



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

    diag('If PHP throws a fatal error, bail as nicely as possible.');

    ok(1, "Pass one for good measure");

    include_ok($lib,'Including a library again should redefine a function and bail.');

    ok(1, 'This test will not be reached.');

?>