本文整理汇总了PHP中check::classparent方法的典型用法代码示例。如果您正苦于以下问题:PHP check::classparent方法的具体用法?PHP check::classparent怎么用?PHP check::classparent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类check
的用法示例。
在下文中一共展示了check::classparent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bar
<?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();
示例2: array
<?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();