Go to the source code of this file.
Functions | |
| selftest_assert (bool $condition, string $message) | |
| selftest_remove_tree (string $path) | |
Variables | |
| $fixture = sys_get_temp_dir() . '/dbx-selftest-runner-' . bin2hex(random_bytes(4)) | |
| $testDir = $fixture . '/dbx/modules/demo/tests' | |
| $logDir = $fixture . '/files/sys/selftest' | |
| try | |
| $runnerSource = (string)file_get_contents(dirname(__DIR__) . '/include/dbxSelfTestRunner.class.php') | |
| $controllerSource = (string)file_get_contents(dirname(__DIR__) . '/include/dbxSelfTestController.class.php') | |
| $dashboardSource = (string)file_get_contents(dirname(__DIR__) . '/tpl/js/selftest.js') | |
| $startFunction = strpos($dashboardSource, 'async function startRun(profile, ids)') | |
| $busyGuard = $startFunction === false ? false : strpos($dashboardSource, 'if (state.busy) return;', $startFunction) | |
| $busyLock = $busyGuard === false ? false : strpos($dashboardSource, 'setBusy(true);', $busyGuard) | |
| $startRequest = $busyLock === false ? false : strpos($dashboardSource, 'request(urls.start', $busyLock) | |
| $phpResolver = new ReflectionMethod($runner, 'resolvePhpCliBinary') | |
| $phpCli = $phpResolver->invoke($runner) | |
| $catalog = $runner->catalog('full') | |
| $demo = array_values(array_filter($catalog, static fn(array $test): bool => ($test['relative_path'] ?? '') === 'dbx/modules/demo/tests/demo_test.php')) | |
| $browserDemo = array_values(array_filter($catalog, static fn(array $test): bool => ($test['relative_path'] ?? '') === 'dbx/modules/demo/tests/demo_test.js')) | |
| $run = $runner->startRun('full', array($demo[0]['id']), 'single') | |
| $result = $runner->executeRunTest($run['id'], $demo[0]['id']) | |
| $finished = $runner->finishRun($run['id']) | |
| $browserRun = $runner->startRun('full', array($browserDemo[0]['id']), 'single') | |
| $browserResult | |
| $staleRun = $runner->startRun('full', array($demo[0]['id']), 'single') | |
| $stalePath = (string)$runner->runLogPath($staleRun['id']) | |
| $staleHistory | |
| finally | |
| selftest_assert | ( | bool | $condition, |
| string | $message ) |
Definition at line 6 of file dbxSelfTestRunner_test.php.
| selftest_remove_tree | ( | string | $path | ) |
Definition at line 13 of file dbxSelfTestRunner_test.php.
| $browserDemo = array_values(array_filter($catalog, static fn(array $test): bool => ($test['relative_path'] ?? '') === 'dbx/modules/demo/tests/demo_test.js')) |
Definition at line 59 of file dbxSelfTestRunner_test.php.
| $browserResult |
Definition at line 74 of file dbxSelfTestRunner_test.php.
| $browserRun = $runner->startRun('full', array($browserDemo[0]['id']), 'single') |
Definition at line 73 of file dbxSelfTestRunner_test.php.
| $busyGuard = $startFunction === false ? false : strpos($dashboardSource, 'if (state.busy) return;', $startFunction) |
Definition at line 46 of file dbxSelfTestRunner_test.php.
| $busyLock = $busyGuard === false ? false : strpos($dashboardSource, 'setBusy(true);', $busyGuard) |
Definition at line 47 of file dbxSelfTestRunner_test.php.
| $catalog = $runner->catalog('full') |
Definition at line 57 of file dbxSelfTestRunner_test.php.
Referenced by dbx\dbxKi\dbxKiCmsService\bundleIsAllowedInPackage(), dbx\dbxSelfTest\dbxSelfTestRunner\executeRunTest(), dbx\dbxSelfTest\dbxSelfTestRunner\recordBrowserTestResult(), dbx\dbxAdmin\dbxDDServerBindings\run(), and dbx\dbxSelfTest\dbxSelfTestRunner\startRun().
| $controllerSource = (string)file_get_contents(dirname(__DIR__) . '/include/dbxSelfTestController.class.php') |
Definition at line 40 of file dbxSelfTestRunner_test.php.
| $dashboardSource = (string)file_get_contents(dirname(__DIR__) . '/tpl/js/selftest.js') |
Definition at line 41 of file dbxSelfTestRunner_test.php.
| $demo = array_values(array_filter($catalog, static fn(array $test): bool => ($test['relative_path'] ?? '') === 'dbx/modules/demo/tests/demo_test.php')) |
Definition at line 58 of file dbxSelfTestRunner_test.php.
Referenced by dbx\myInvoices\myInvoicesFixtures\install().
| $finished = $runner->finishRun($run['id']) |
Definition at line 67 of file dbxSelfTestRunner_test.php.
| $fixture = sys_get_temp_dir() . '/dbx-selftest-runner-' . bin2hex(random_bytes(4)) |
Definition at line 26 of file dbxSelfTestRunner_test.php.
| $logDir = $fixture . '/files/sys/selftest' |
Definition at line 28 of file dbxSelfTestRunner_test.php.
Referenced by dbx\dbxSelfTest\dbxSelfTestRunner\logDir().
| $phpCli = $phpResolver->invoke($runner) |
Definition at line 54 of file dbxSelfTestRunner_test.php.
| $phpResolver = new ReflectionMethod($runner, 'resolvePhpCliBinary') |
Definition at line 53 of file dbxSelfTestRunner_test.php.
| $result = $runner->executeRunTest($run['id'], $demo[0]['id']) |
Definition at line 65 of file dbxSelfTestRunner_test.php.
| $run = $runner->startRun('full', array($demo[0]['id']), 'single') |
Definition at line 64 of file dbxSelfTestRunner_test.php.
Referenced by dbx\dbxSelfTest\dbxSelfTestRunner\executeRunTest(), dbx\dbxSelfTest\dbxSelfTestRunner\finishRun(), dbx\dbxSelfTest\dbxSelfTestRunner\history(), dbx\dbxAdmin\modul_edit(), dbx\dbxAdmin\modul_new(), dbx\dbxSelfTest\dbxSelfTestRunner\recordBrowserTestResult(), dbx\dbxAdmin\dbxUser\run(), dbx\dbxAdmin\dbxWizard\run(), dbx\dbxContact\dbxContact\run(), dbx\dbxContact_admin\dbxContactAdmin\run(), dbx\dbxDownLoad\dbxDownLoad\run(), dbx\dbxShop\dbxShop\run(), dbx\dbxShop_admin\dbxShopAdmin\run(), dbx\dbxWorkflow\dbxWorkflow\run(), dbx\dbxWorkflow_admin\dbxWorkflowAdmin\run(), dbx\myInvoices\myInvoices\run(), dbx\myLKW\myLKW_list\run(), dbx\dbxSelfTest\dbxSelfTestRunner\runProfile(), and dbx\dbxSelfTest\dbxSelfTestRunner\startRun().
| $runnerSource = (string)file_get_contents(dirname(__DIR__) . '/include/dbxSelfTestRunner.class.php') |
Definition at line 39 of file dbxSelfTestRunner_test.php.
| $staleHistory |
Definition at line 86 of file dbxSelfTestRunner_test.php.
| $stalePath = (string)$runner->runLogPath($staleRun['id']) |
Definition at line 83 of file dbxSelfTestRunner_test.php.
| $staleRun = $runner->startRun('full', array($demo[0]['id']), 'single') |
Definition at line 82 of file dbxSelfTestRunner_test.php.
| $startFunction = strpos($dashboardSource, 'async function startRun(profile, ids)') |
Definition at line 45 of file dbxSelfTestRunner_test.php.
| $startRequest = $busyLock === false ? false : strpos($dashboardSource, 'request(urls.start', $busyLock) |
Definition at line 48 of file dbxSelfTestRunner_test.php.
| $testDir = $fixture . '/dbx/modules/demo/tests' |
Definition at line 27 of file dbxSelfTestRunner_test.php.
| finally |
Definition at line 92 of file dbxSelfTestRunner_test.php.
| try |
Definition at line 37 of file dbxSelfTestRunner_test.php.