本文整理汇总了PHP中Frontend::setOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Frontend::setOptions方法的具体用法?PHP Frontend::setOptions怎么用?PHP Frontend::setOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Frontend
的用法示例。
在下文中一共展示了Frontend::setOptions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
*
* @author Wayne Ashley <nvoyxmail@gmail.com>
* @copyright 2015 Wayne Ashley
* @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPL-3.0)
*
*/
$st = $nvBoot->fetch_entry('core') . '/classes/simpletest/';
$nv = $st . 'nvoy/';
/* list of test files to include */
require_once $nv . 'frontend.php';
require_once $nv . 'backend.php';
require_once $nv . 'nvreporter.php';
/* reporter options */
$ro = array('passes' => 0);
/* test options */
$to = array('http' => 'http://' . $_SERVER['SERVER_NAME'], 'https' => 'https://' . $_SERVER['SERVER_NAME'], 'session_id' => session_id(), 'captcha' => $_SESSION['captcha'], 'core' => $nvBoot->fetch_entry('core'));
/* grab a reporter and pass in some options */
$reporter = new nvReporter();
$reporter->setOptions($ro);
/* grab the frontend tests and pass in some options */
$frontend = new Frontend('Front End');
$frontend->setOptions($to);
/* grab the backend tests and pass in some options */
$backend = new Backend('Back End');
$backend->setOptions($to);
/* load all the tests inside the testsuite and apply our own styling */
$test = new TestSuite('nvoy Tests');
$test->add($frontend);
$test->add($backend);
$test->run($reporter);