Quality

Tests

PHPUnit is provided by the container, not a module dependency. The suite covers logic with no network calls: splitting text too long for one request, HTML-preserving translation (extracting/reinjecting text nodes), behaviour shared by every provider (ISO resolution, excluded-word protection), dictionary substitution and Latin transliteration.

# 19 tests
docker exec -u www-data php8.4_app bash -c \
  "cd .../modules/freshappiatranslator && phpunit"
Loading...
Back to top