mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: adds --retry option
This commit is contained in:
15
tests/Unit/Plugins/Retry.php
Normal file
15
tests/Unit/Plugins/Retry.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use Pest\Plugins\Retry;
|
||||
|
||||
beforeEach(fn () => Retry::$retrying = false);
|
||||
|
||||
afterEach(fn () => Retry::$retrying = false);
|
||||
|
||||
it('retries if --retry argument is used', function () {
|
||||
$retry = new Retry();
|
||||
|
||||
$retry->handleArguments(['--retry']);
|
||||
|
||||
expect(Retry::$retrying)->toBeTrue();
|
||||
});
|
||||
Reference in New Issue
Block a user