summaryrefslogtreecommitdiffstats
path: root/application/third_party/test-more-php/Test-Simple.php
blob: 5005383df139c17b39d9a1ca0900a5bc8f9dfd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/*
    Procedural wrapper for Test-Simple.php
    See Test-Simple-OO.php for documentation.
*/

require_once('Test-Simple-OO.php');

global $__Test;
$__Test = new TestSimple();

// Expose public API for TestSimple methods as functions
function plan()         { global $__Test; $args = func_get_args(); return call_user_func_array(array($__Test,'plan'),$args); }
function ok()           { global $__Test; $args = func_get_args(); return call_user_func_array(array($__Test,'ok'),$args); }
function diag()         { global $__Test; $args = func_get_args(); return call_user_func_array(array($__Test,'diag'),$args); }
function web_output()   { global $__Test; $args = func_get_args(); return call_user_func_array(array($__Test,'web_output'),$args); }

?>