当前位置: 首页>>代码示例>>PHP>>正文


PHP CakeTestSuiteDispatcher::dispatch方法代码示例

本文整理汇总了PHP中CakeTestSuiteDispatcher::dispatch方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestSuiteDispatcher::dispatch方法的具体用法?PHP CakeTestSuiteDispatcher::dispatch怎么用?PHP CakeTestSuiteDispatcher::dispatch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CakeTestSuiteDispatcher的用法示例。


在下文中一共展示了CakeTestSuiteDispatcher::dispatch方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

 /**
  * Static method to initialize the test runner, keeps global space clean
  *
  * @return void
  */
 public static function run()
 {
     $dispatcher = new CakeTestSuiteDispatcher();
     $dispatcher->dispatch();
 }
开发者ID:juliocp88,项目名称:cakephp-example,代码行数:10,代码来源:CakeTestSuiteDispatcher.php

示例2: dirname

	define('WWW_ROOT', dirname(__FILE__) . DS);
}
if (!defined('CORE_PATH')) {
	if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) {
		define('APP_PATH', null);
		define('CORE_PATH', null);
	} else {
		define('APP_PATH', ROOT . DS . APP_DIR . DS);
		define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
	}
}
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
	trigger_error("CakePHP core could not be found.  Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}

$corePath = App::core('cake');
if (isset($corePath[0])) {
	define('TEST_CAKE_CORE_INCLUDE_PATH', rtrim($corePath[0], DS) . DS);
} else {
	define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH);
}

if (Configure::read('debug') < 1) {
	die(__('Debug setting does not allow access to this url.', true));
}

require_once CAKE_TESTS_LIB . 'cake_test_suite_dispatcher.php';

$Dispatcher = new CakeTestSuiteDispatcher();
$Dispatcher->dispatch();
开发者ID:eecian,项目名称:Team08-iPeer,代码行数:30,代码来源:test.php


注:本文中的CakeTestSuiteDispatcher::dispatch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。