Skip to content

Commit 7a04e27

Browse files
Merge pull request #6 from spaantje/patch-1
Update changed methods in documentation
2 parents 11f65e0 + 2d5b0dc commit 7a04e27

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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`
7070
method.
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

8585
If 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
8989
Flaky::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

Comments
 (0)