本文整理汇总了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;未经允许,请勿转载。 |
请发表评论