- Published on
Run TYPO3 Tests with PHP8
- Authors
- Name
- Susanne Moog
A short note on getting TYPO3 tests running with PHP 8.
Requirements
- TYPO3 version compatible with PHP 8
- Updated Composer constraints for PHP and extensions
- PHPUnit compatible with your PHP/TYPO3 versions
Install deps
composer install
If composer refuses due to PHP platform settings, define a matching platform or update constraints.
Run tests
# Core or extension tests, adjust path as needed
./vendor/bin/phpunit -c Build/UnitTests.xml
With DDEV/Docker:
ddev exec ./vendor/bin/phpunit -c Build/UnitTests.xml
Tips
- Keep Xdebug off for speed; enable coverage with phpdbg if needed
- Ensure TYPO3 Testing Framework version matches core version
- Watch out for deprecated notices that became errors in PHP 8