@@ -66,7 +66,7 @@ If your callback succeeds, the deadline will be reset.
6666
6767### Consecutive Failures
6868
69- If you'd prefer to take a numeric approach instead of a time-based approach, you can use the ` consecutiveFailures `
69+ If you'd prefer to take a numeric approach instead of a time-based approach, you can use the ` allowConsecutiveFailures `
7070method.
7171
7272``` php
@@ -83,12 +83,12 @@ Now your function can fail 10 times in a row without alerting you, but on the 11
8383### Total Failures
8484
8585If you want to throw an exception after a total number of failures, regardless of successes, you can use
86- the ` totalFailures ` method.
86+ the ` allowTotalFailures ` method.
8787
8888``` php
8989Flaky::make('my-flaky-code')
9090 // It can fail ten times total.
91- ->totalFailures (10)
91+ ->allowTotalFailures (10)
9292 ->run(function() {
9393 //
9494 })
@@ -106,9 +106,9 @@ Flaky::make('my-flaky-code')
106106 // Alert after an hour.
107107 ->allowFailuresForAnHour()
108108 // Alert after the third consecutive failure.
109- ->consecutiveFailures (3)
109+ ->allowConsecutiveFailures (3)
110110 // Alert after the tenth failure.
111- ->totalFailures (10)
111+ ->allowTotalFailures (10)
112112 ->run(function() {
113113 //
114114 })
@@ -271,4 +271,4 @@ class FlakyTestCommand extends Command
271271 ->run([$this, 'process']);
272272 }
273273}
274- ```
274+ ```
0 commit comments