friends-of-behat/mink-driver-testsuite
Fork of Mink DriverTestsuite updated for PHP >=7.4, Symfony >=4.4, and PHPUnit ^8.0. Use it to run Mink driver compliance tests with modern Symfony/PHP stacks. Documentation follows the original minkphp/driver-testsuite repo.
Purpose Alignment: This package is a test suite for Mink drivers, not a production-grade feature. It is designed to validate the correctness of browser/automation drivers (e.g., Selenium2, Goutte, etc.) used in Behat/Mink-based testing frameworks.
Laravel/PHP Compatibility:
symfony/browser-kit dependency).behat/mink-bundle or custom setups.Low Coupling: Can be integrated without modifying core Laravel logic if Mink is already in use.
Dependency Risks:
symfony/browser-kit, symfony/css-selector).phpunit.xml adjustments).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Driver-Specific Issues | Medium | Validate against your exact Mink driver (e.g., Selenium, Goutte). |
| PHPUnit/Symfony Version Conflicts | Low | Test in a staging environment; use composer why-not to check conflicts. |
| Maintenance Stagnation | High | Fork may not sync with upstream; consider contributing fixes or using the original repo if PHP 7.4+ is acceptable. |
| False Sense of Security | Medium | Test suite validates drivers but doesn’t replace manual testing of edge cases. |
Laravel Compatibility:
behat/mink-bundle (Symfony-centric but usable in Laravel).Illuminate\Foundation\Testing or standalone PHPUnit.composer require behat/mink behat/mink-selenium2-driver friends-of-behat/mink-driver-testsuite --dev
HttpClient), ensure symfony/browser-kit is installed.Testing Framework:
phpunit.xml override:
<phpunit bootstrap="vendor/autoload.php">
<php>
<ini name="error_reporting" value="-1"/>
</php>
</phpunit>
behat.yml snippet:
suites:
default:
contexts:
- FriendsOfBehat\DriverTestsuite\Context\DriverContext
php vendor/bin/behat task to your test pipeline (e.g., GitHub Actions):
- name: Run Mink Driver Tests
run: vendor/bin/behat -c behat-driver.yml
| Component | Compatibility Status | Notes |
|---|---|---|
| PHP | ≥7.4 (LTS) | Laravel 8+ uses PHP 8.x; no issues. |
| PHPUnit | ^8.0 | Laravel 10.x uses PHPUnit 10.x; check for deprecations. |
| Symfony | ≥4.4 | Only browser-kit; minimal footprint. |
| Mink Drivers | Depends on driver (e.g., Selenium2, Goutte) | Test against your specific drivers. |
| Laravel | Indirect (via Mink) | No direct Laravel hooks. |
| Failure Scenario | Impact | Recovery Strategy |
|---|---|---|
| Driver Test Fails | Tests block deployments | Investigate false positives; update drivers or tests. |
| PHPUnit/Symfony Version Conflict | Build pipeline breaks | Downgrade PHPUnit or patch composer.json. |
| Fork Stagnation | Critical bugs go unpatched | Contribute fixes upstream or fork locally. |
| Environment-Specific Issues | Tests pass locally but fail in CI | Use identical Docker/VM setups for CI and local dev. |
actingAs()).How can I help you explore Laravel packages today?