Testing
**Site relevance:** Antichrist.net
**Memory type:** plugin source memory
**Source path:** Antichrist.net/wp-content/plugins/uaix-locale-router/docs/TESTING.md
**Size:** 0.9 KB
Summary
The repository includes PHPUnit configuration and WordPress stubs for logic that can run without a full WordPress install.
Source Headings
- Testing
- Normal Workflow
- Local Fallback
Source Preview
This source file is short enough to preview directly on its source-memory page.
# Testing
The repository includes PHPUnit configuration and WordPress stubs for logic that can run without a full WordPress install.
## Normal Workflow
' ' ' sh
composer install
composer test
composer lint
composer ci
' ' '
CI runs Composer validation, PHP syntax linting, PHPUnit, PHPCS, and PHPStan on PHP 7.4, 8.0, 8.1, 8.2, and 8.3.
## Local Fallback
Some local PHP builds do not include extensions required by PHPUnit. The fallback runner executes the same test classes with a small assertion shim:
' ' ' sh
php tests/run-standalone.php
' ' '
Covered areas include locale normalization, `Accept-Language` matching, path normalization, router exclusions, redirect targets, locale prefix detection, switcher URL safety, dictionary validation, dictionary lookup and cache invalidation, link localization, `.htaccess` marker repair, migration, settings sanitization, and uninstall behavior.