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

PHP TestFinder类代码示例

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

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



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

示例1: TestFinder

  function &getTestCasesHandlesFromDirectoryRecursive($directory)
  {
    $finder = new TestFinder();
    $files = $finder->_getRecursiveFileList($directory, array(&$finder, '_isTestCaseFile'));

    return $finder->_getTestCasesHandlesFromFilesList($files);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:test_finder.class.php


示例2: getTestCasesHandles

  function getTestCasesHandles()
  {
    $handles = array();
    $handles = TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/db');

    $db_type = getIniOption('common.ini', 'type', 'DB');

    $handles = array_merge(
      $handles,
      TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/db/' . $db_type)
    );

    return $handles;
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:14,代码来源:DbGroup.class.php


示例3: getTestCasesHandles

 function getTestCasesHandles()
 {
   return TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/template/tags/locale');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:LocaleTagsGroup.class.php


示例4: getTestCasesHandles

 function & getTestCasesHandles()
 {
   return TestFinder :: getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/validation');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:validation_group.class.php


示例5: getTestCasesHandles

 function getTestCasesHandles()
 {
   return TestFinder::getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/toolkits');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:ToolkitsGroup.class.php


示例6: onPageRequest

 public function onPageRequest($event)
 {
     global $page;
     if ($event->page_matches("test")) {
         set_time_limit(0);
         $page->set_title("Test Results");
         $page->set_heading("Test Results");
         $page->add_block(new NavBlock());
         $all = new TestFinder($event->get_arg(0));
         $all->run(new SCoreReporter($page));
     }
 }
开发者ID:kmcasto,项目名称:shimmie2,代码行数:12,代码来源:main.php


示例7: getTestCasesHandles

 function getTestCasesHandles()
 {
     return TestFinder::getTestCasesHandlesFromDirectory(dirname(__FILE__) . '/dao/');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:SimpleACLDAOGroup.class.php


示例8: onCommand

 public function onCommand(CommandEvent $event)
 {
     if ($event->cmd == "help") {
         print "  test [extension]\n";
         print "    run automated tests for the name extension\n\n";
     }
     if ($event->cmd == "test") {
         $all = new TestFinder($event->args[0]);
         $all->run(new SCoreCLIReporter());
     }
 }
开发者ID:JarJak,项目名称:shimmie2,代码行数:11,代码来源:main.php


示例9: getTestCasesHandles

 function getTestCasesHandles()
 {
     return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/../cases/site_objects');
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:CommonSiteObjectsGroup.class.php


示例10: Database

    require_once $filename;
}
// We also need to pull in the SimpleTest extension.
require_once 'ext/simpletest/main.php';
// connect to the database
$database = new Database();
$config = new DatabaseConfig($database);
// load the theme parts
foreach (_get_themelet_files(get_theme()) as $themelet) {
    require_once $themelet;
}
_load_extensions();
// Fire off the InitExtEvent()
$page = class_exists("CustomPage") ? new CustomPage() : new Page();
$user = _get_user();
send_event(new InitExtEvent());
// Put the database into autocommit mode for making the users.
$database->commit();
// Create the necessary users for the tests.
$userPage = new UserPage();
$userPage->onUserCreation(new UserCreationEvent("demo", "demo", ""));
$userPage->onUserCreation(new UserCreationEvent("test", "test", ""));
// Fire off the InitExtEvent() again after we have made the users.
$page = class_exists("CustomPage") ? new CustomPage() : new Page();
$user = _get_user();
send_event(new InitExtEvent());
// Now we can actually run all the tests.
$all = new TestFinder("");
$results = $all->run(new TextReporter());
// Travis-CI needs to know the results of the tests.
exit($results ? 0 : 1);
开发者ID:JarJak,项目名称:shimmie2,代码行数:31,代码来源:test_all.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP TestHelper类代码示例发布时间:2022-05-23
下一篇:
PHP TestEnv类代码示例发布时间: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