t/Test.php File Reference

Go to the source code of this file.

Functions

 plan ($plan, $why= '')
 pass ($desc= '')
 fail ($desc= '')
 ok ($cond, $desc= '')
 is ($got, $expected, $desc= '')
 isnt ($got, $expected, $desc= '')
 like ($got, $expected, $desc= '')
 unlike ($got, $expected, $desc= '')
 cmp_ok ($got, $op, $expected, $desc= '')
 diag ($message)
 include_ok ($file, $desc= '')
 require_ok ($file, $desc= '')
 is_deeply ($got, $expected, $desc= '')
 isa_ok ($obj, $expected, $desc= '')
 todo_start ($why= '')
 todo_end ()
 _proclaim ($cond,#bool $desc= '', $todo=false, $got=null, $expected=null, $negate=false)
 _test_ends ()
 _repl ($obj, $deep=true)
 _diff ($gpath, $got, $epath, $expected)
 _idx ($obj, $path= '')
 _cmp_deeply ($got, $exp, $path= '')
 _plural ($n, $singular, $plural=null)
 _repl_array ($obj, $deep)

Variables

 $__Test


Function Documentation

_cmp_deeply ( got,
exp,
path = '' 
)

Definition at line 287 of file Test.php.

References $path, _diff(), _idx(), and _repl().

Referenced by is_deeply().

_diff ( gpath,
got,
epath,
expected 
)

Definition at line 274 of file Test.php.

Referenced by _cmp_deeply().

_idx ( obj,
path = '' 
)

Definition at line 283 of file Test.php.

References $obj, $path, and _repl().

Referenced by _cmp_deeply().

_plural ( n,
singular,
plural = null 
)

Definition at line 331 of file Test.php.

References $n.

Referenced by _repl_array().

_proclaim ( cond,
#bool $  desc = '',
todo = false,
got = null,
expected = null,
negate = false 
)

Definition at line 186 of file Test.php.

References $__Test, $ok, $todo, diag(), and printf().

Referenced by cmp_ok(), fail(), include_ok(), is(), is_deeply(), isa_ok(), isnt(), like(), ok(), pass(), require_ok(), and unlike().

_repl ( obj,
deep = true 
)

Definition at line 258 of file Test.php.

References $obj, and _repl_array().

Referenced by _cmp_deeply(), _idx(), _repl_array(), and is_deeply().

_repl_array ( obj,
deep 
)

Definition at line 338 of file Test.php.

References $obj, _plural(), and _repl().

Referenced by _repl().

_test_ends (  ) 

Definition at line 240 of file Test.php.

References $__Test, and printf().

cmp_ok ( got,
op,
expected,
desc = '' 
)

Definition at line 75 of file Test.php.

References $pass, and _proclaim().

diag ( message  ) 

Definition at line 118 of file Test.php.

Referenced by _proclaim().

fail ( desc = ''  ) 

Definition at line 46 of file Test.php.

References _proclaim().

Referenced by NonScaryGearmanWorker::doWork(), and SearchEngineTest::run().

include_ok ( file,
desc = '' 
)

Definition at line 131 of file Test.php.

References $file, $pass, and _proclaim().

is ( got,
expected,
desc = '' 
)

is_deeply ( got,
expected,
desc = '' 
)

Definition at line 143 of file Test.php.

References $pass, _cmp_deeply(), _proclaim(), and _repl().

isa_ok ( obj,
expected,
desc = '' 
)

Definition at line 158 of file Test.php.

References $name, $obj, $pass, and _proclaim().

isnt ( got,
expected,
desc = '' 
)

Definition at line 60 of file Test.php.

References $pass, and _proclaim().

like ( got,
expected,
desc = '' 
)

Definition at line 65 of file Test.php.

References $pass, and _proclaim().

Referenced by addWiki(), do_copy_newtalk_to_watchlist(), and wfRunHooks().

ok ( cond,
desc = '' 
)

pass ( desc = ''  ) 

Definition at line 41 of file Test.php.

References _proclaim().

Referenced by userOptions::showUsageAndExit().

plan ( plan,
why = '' 
)

Definition at line 21 of file Test.php.

References $__Test, and printf().

Referenced by SearchEngineTest::run().

require_ok ( file,
desc = '' 
)

Definition at line 137 of file Test.php.

References $file, $pass, and _proclaim().

todo_end (  ) 

Definition at line 171 of file Test.php.

References $__Test.

todo_start ( why = ''  ) 

Definition at line 164 of file Test.php.

References $__Test.

unlike ( got,
expected,
desc = '' 
)

Definition at line 70 of file Test.php.

References $pass, and _proclaim().


Variable Documentation

$__Test

Initial value:

 array(
    # How many tests are planned
    'planned'   => null,

    # How many tests we've run, if 'planned' is still null by the time we're
    # done we report the total count at the end
    'run' => 0,

    # Are are we currently within todo_start()/todo_end() ?
    'todo' => array(),
)

Definition at line 9 of file Test.php.

Referenced by _proclaim(), _test_ends(), plan(), todo_end(), and todo_start().


Generated on Sat Sep 5 02:08:28 2009 for MediaWiki by  doxygen 1.5.9