• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CakeTestSuiteDispatcher类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: testLoadTestFramework

 public function testLoadTestFramework()
 {
     $dispatcher = new CakeTestSuiteDispatcher();
     $this->assertTrue($dispatcher->loadTestFramework());
     $this->clearPaths();
     $exception = null;
     try {
         $dispatcher->loadTestFramework();
     } catch (Exception $ex) {
         $exception = $ex;
     }
     $this->assertEquals(get_class($exception), "PHPUnit_Framework_Error_Warning");
 }
开发者ID:beyondkeysystem,项目名称:testone,代码行数:13,代码来源:CakeTestSuiteDispatcherTest.php


示例2: 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


示例3: define

 * Editing below this line should not be necessary.
 * Change at your own risk.
 *
 */
if (!defined('WEBROOT_DIR')) {
    define('WEBROOT_DIR', basename(dirname(__FILE__)));
}
if (!defined('WWW_ROOT')) {
    define('WWW_ROOT', dirname(__FILE__) . DS);
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
    if (function_exists('ini_set')) {
        ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
    }
    if (!(include 'Cake' . DS . 'bootstrap.php')) {
        $failed = true;
    }
} else {
    if (!(include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
        $failed = true;
    }
}
if (!empty($failed)) {
    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);
}
if (Configure::read('debug') < 1) {
    throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.'));
}
require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';
CakeTestSuiteDispatcher::run();
开发者ID:dereuromark,项目名称:cakephp-sandbox,代码行数:30,代码来源:test.php


示例4: 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


示例5: date

 /**
  * See CakeTestSuiteDispatcher::date()
  *
  * @param string $format format to be used.
  * @return string
  */
 public static function date($format = 'Y-m-d H:i:s')
 {
     return CakeTestSuiteDispatcher::date($format);
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:10,代码来源:CakeTestCase.php


示例6: _runTestCase

 /**
  * Runs a test case file.
  *
  * @return void
  */
 function _runTestCase()
 {
     $Reporter =& CakeTestSuiteDispatcher::getReporter();
     if ($this->params['codeCoverage']) {
         CodeCoverageManager::init($this->params['case'], $Reporter);
     }
     $this->Manager->runTestCase($this->params['case'], $Reporter);
 }
开发者ID:sathishkumarb,项目名称:HVMS,代码行数:13,代码来源:cake_test_suite_dispatcher.php


示例7: _runTestCase

 /**
  * Runs a test case file.
  *
  * @return void
  */
 function _runTestCase()
 {
     try {
         $Reporter = CakeTestSuiteDispatcher::getReporter();
         return $this->Manager->runTestCase($this->params['case'], $Reporter, $this->params['codeCoverage']);
     } catch (MissingConnectionException $exception) {
         ob_end_clean();
         $baseDir = $this->_baseDir;
         include CAKE_TESTS_LIB . 'templates' . DS . 'missing_conenction.php';
         exit;
     }
 }
开发者ID:no2key,项目名称:Web-Framework-Benchmark,代码行数:17,代码来源:cake_test_suite_dispatcher.php


示例8: _checkXdebug

 /**
  * {@inheritdoc}
  *
  * @return void
  */
 protected function _checkXdebug()
 {
     if (!defined('HHVM_VERSION')) {
         parent::_checkXdebug();
     }
 }
开发者ID:imsamurai,项目名称:cakephp-environment,代码行数:11,代码来源:HHVMTestSuiteDispatcher.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CakeText类代码示例发布时间:2022-05-23
下一篇:
PHP CakeTestSuite类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap