| [ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
Helper to run YOURLS in a fresh PHP process from within a test. Use this when what's being tested can only happen once per process: a constant being defined (or not), a file being loaded with require_once, a bootstrap step behaving differently depending on a config constant.
| File Size: | 48 lines (2 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| run_in_new_process( $scenario, $constants = array() X-Ref |
| Boot YOURLS in a new PHP process, run a scenario, and return its report return: array Report with keys 'scenario', 'constants' (defined YOURLS_* constants, param: string $scenario Scenario name, ie file scenarios/<name>.php param: array $constants Constants to define before YOURLS boots, as $name => $value |
| Generated: Sun Sep 27 05:12:21 2026 | Cross-referenced by PHPXref 0.7.1 |