Exemplo n.º 1
0
<?php

require "tests.php";
require "class_ignore.php";
check::functions(array(do_blah, new_bar, bar_blah, new_boo, boo_away, new_far, new_hoo));
check::classes(array(class_ignore, Bar, Boo, Far, Hoo));
// No new vars
check::globals(array());
$bar = new bar();
do_blah($bar);
check::classparent($bar, "");
check::done();
Exemplo n.º 2
0
<?php

require "tests.php";
require "rename_scope.php";
check::classes(array("rename_scope", "Interface_UP", "Interface_BP", "Natural_UP", "Natural_BP", "Bucket"));
check::classmethods("Interface_UP", array("__construct", "__set", "__isset", "__get"));
check::classmethods("Interface_BP", array("__construct", "__set", "__isset", "__get"));
check::classmethods("Natural_UP", array("__construct", "__set", "__isset", "__get", "rtest"));
check::classmethods("Natural_BP", array("__construct", "__set", "__isset", "__get", "rtest"));
check::classparent("Natural_UP", "Interface_UP");
check::classparent("Natural_BP", "Interface_BP");
check::done();