function &getTestCasesHandlesFromDirectoryRecursive($directory) { $finder = new TestFinder(); $files = $finder->_getRecursiveFileList($directory, array(&$finder, '_isTestCaseFile')); return $finder->_getTestCasesHandlesFromFilesList($files); }
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; }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/template/tags/locale'); }
function & getTestCasesHandles() { return TestFinder :: getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/validation'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/toolkits'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/commands/simple_object_commands'); }
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)); } }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectory(dirname(__FILE__) . '/dao/'); }
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()); } }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/../cases/site_objects'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/orm/domain_objects'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/../cases/access_policy'); }
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);
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/entity'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/template/components'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectory(dirname(__FILE__) . '/search_engine_rules/'); }
function & getTestCasesHandles() { return TestFinder :: getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/site_objects_manipulation'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/file_resolvers'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectory(LIMB_DIR . '/tests/cases/request_resolvers'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/orm/data_mappers'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/../cases/data_mappers'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/../cases/normalizers/'); }
function & getTestCasesHandles() { return TestFinder :: getTestCasesHandlesFromDirectoryRecursive(LIMB_DIR . '/tests/cases/full_text_search'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/groups'); }
function getTestCasesHandles() { return TestFinder::getTestCasesHandlesFromDirectoryRecursive(dirname(__FILE__) . '/../cases/authenticator/'); }