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 |
_cmp_deeply | ( | $ | got, | |
$ | exp, | |||
$ | path = '' | |||
) |
_diff | ( | $ | gpath, | |
$ | got, | |||
$ | epath, | |||
$ | expected | |||
) |
_idx | ( | $ | obj, | |
$ | path = '' | |||
) |
_plural | ( | $ | n, | |
$ | singular, | |||
$ | plural = null | |||
) |
_proclaim | ( | $ | cond, | |
#bool $ | desc = '' , |
|||
$ | todo = false , |
|||
$ | got = null , |
|||
$ | expected = null , |
|||
$ | negate = false | |||
) |
_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 | |||
) |
cmp_ok | ( | $ | got, | |
$ | op, | |||
$ | expected, | |||
$ | desc = '' | |||
) |
diag | ( | $ | message | ) |
fail | ( | $ | desc = '' |
) |
Definition at line 46 of file Test.php.
References _proclaim().
Referenced by NonScaryGearmanWorker::doWork(), and SearchEngineTest::run().
include_ok | ( | $ | file, | |
$ | desc = '' | |||
) |
is | ( | $ | got, | |
$ | expected, | |||
$ | desc = '' | |||
) |
Definition at line 55 of file Test.php.
References $pass, and _proclaim().
Referenced by Exif::__construct(), addWiki(), Parser::braceSubstitution(), RecompressTracked::doAllPages(), ModernTemplate::execute(), UpdateLogging::execute(), ApiQueryImageInfo::execute(), CheckLanguageCLI::help(), ApiFormatBase::initPrinter(), Parser::maybeDoSubpageLink(), DatabasePostgres::open(), DatabaseOracle::open(), Parser::parse(), Preprocessor_Hash::preprocessToObj(), UtfNormal::quickIsNFCVerify(), Parser::replaceInternalLinks2(), SearchEngineTest::run(), Title::secureAndSplit(), DatabaseMssql::setup_database(), IPBlockForm::showForm(), showUsage(), userOptions::showUsageAndExit(), userOptions::warn(), wfGetLangObj(), and wfPublicError().
is_deeply | ( | $ | got, | |
$ | expected, | |||
$ | desc = '' | |||
) |
isa_ok | ( | $ | obj, | |
$ | expected, | |||
$ | desc = '' | |||
) |
isnt | ( | $ | got, | |
$ | expected, | |||
$ | desc = '' | |||
) |
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 = '' | |||
) |
Definition at line 51 of file Test.php.
References _proclaim().
Referenced by Status::fatal(), Status::getWikiText(), Status::isGood(), Status::isOK(), Status::merge(), and Status::setResult().
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 = '' | |||
) |
unlike | ( | $ | got, | |
$ | expected, | |||
$ | desc = '' | |||
) |
$__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().