Source: tests/bootstrap_api.php · 64 lines, ~211 statements · namespace: (global) · `declare(strict_types=1)`: no
API Test Bootstrap
Bootstrap for the Phase 4.7 API test suite (tests/api/).
Loads the full application environment (utilities, PSR-4 aliases, rate limiter, HATEOAS) and sets up the test database connection so both controller unit tests and database-backed integration tests can run.
The global phpunit.xml bootstrap (tests/bootstrap.php) is the default for the test run; this file is used when executing the API suite directly:
lib/vendor/bin/phpunit --bootstrap tests/bootstrap_api.php tests/api
| Mode | Target | Line |
|---|---|---|
require | require_once DIR . '/../lib/vendor/autoload.php'; | 22 |
require | require_once DIR . '/../lib/common.php'; | 23 |
require | require_once DIR . '/../install/include/setup.php'; | 28 |
require | require_once DIR . '/../lib/utility-loader.php'; | 32 |
require | require_once DIR . '/../lib/utility/rate-limiter.php'; | 41 |
require | require_once DIR . '/../lib/core/ApiHateoas.php'; | 42 |
require | require DIR . '/../lib/autoload-aliases-map.php'; | 46 |
require | require_once DIR . '/bootstrap_integration.php'; | 60 |
| Name | Value / expression | Line |
|---|---|---|
('TEST_API', true | define('TEST_API', true) | 63 |
Generated by 'tools/gendoc'.