-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
PHPUnit Test Failure
The automated PHPUnit test suite has failed in the EngineScript Site Exporter plugin.
Details
- PHP Version: 7.4
- Test Date: 2026-03-17 21:00:59
- Workflow Run: View detailed logs
Matrix Configuration
This test suite runs on multiple PHP versions:
- PHP 7.4 - PHPUnit 11.* (default)
- PHP 8.0 - PHPUnit 11.*
- PHP 8.1 - PHPUnit 11.*
- PHP 8.2 - PHPUnit 11.*
- PHP 8.3 - PHPUnit 12.* (upgraded for compatibility)
Next Steps
This issue has been automatically created because one or more PHPUnit test cases failed.
Possible Causes:
- PHP Version Incompatibility: Code may not be compatible with the PHP version being tested
- Test Coverage Gap: New features may lack corresponding test cases
- Environment Issues: Database or service connectivity issues
- Assertion Failures: Test expectations no longer match implementation
- Dependency Conflicts: Package versions may have changed
Recommended Actions:
- Review Logs: Check the workflow logs for specific test failure details
- Local Reproduction: Run tests locally with the same PHP version
- Debug Failures: Use verbose output to understand assertion failures
- Fix Issues: Update either the code or tests as needed
- Validate: Re-run PHPUnit to confirm all tests pass
Local Testing Commands:
# Install dependencies (uses PHPUnit 11 by default for PHP 7.4 baseline)
composer install
# Run all tests
composer test
# Run specific test file
vendor/bin/phpunit tests/test-plugin.php
# Run with verbose output
vendor/bin/phpunit --verboseFor PHP 8.3+ Testing:
If you need to test with PHPUnit 12 locally (requires PHP 8.3+):
# Upgrade dependencies for PHP 8.3
composer require-dev phpunit/phpunit:^12 --dev
composer require-dev yoast/phpunit-polyfills:^4 --dev
# Install upgraded dependencies
composer install
# Run tests with PHPUnit 12
composer testSupport
For more information about PHPUnit:
Reactions are currently unavailable