### setUp and tearDown Method Signatures Source: https://github.com/laravel/dusk/blob/8.x/UPGRADE.md When upgrading to Dusk 5.0, the `setUp` and `tearDown` methods in your tests must now include the `void` return type. This change ensures type safety and consistency in test execution. ```php protected function setUp(): void { parent::setUp(); // Your setup logic } protected function tearDown(): void { parent::tearDown(); // Your teardown logic } ``` -------------------------------- ### Install Chrome Driver Source: https://github.com/laravel/dusk/blob/8.x/UPGRADE.md Installs the necessary Chrome driver for Dusk. This command is used when upgrading to Dusk 7.0 and later, as pre-installed Chrome binaries are no longer shipped with Dusk. ```zsh php artisan dusk:chrome-driver ``` -------------------------------- ### PHPUnit 8 Support in Dusk Source: https://github.com/laravel/dusk/blob/8.x/UPGRADE.md Dusk offers optional support for PHPUnit 8, which has a minimum PHP version requirement of 7.2. This also necessitates upgrading to Laravel 5.8. Alternatively, PHPUnit 7 can still be used with a minimum PHP version of 7.1. ```php /** * @requires PHP 7.2 */ class MyTest extends TestCase { // ... } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.