Skip to content

Commit

Permalink
Merge pull request #288 from netojocelino/add_tobedigits_example
Browse files Browse the repository at this point in the history
docs: add two new examples to undestand `->toBeDigits`
  • Loading branch information
nunomaduro authored Sep 27, 2024
2 parents 8c18d58 + f9517d0 commit 5d5aa9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expectations.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ This expectation ensures that `$value` contains only digits.
expect($year)->toBeDigits();
expect(15)->toBeDigits();
expect('15')->toBeDigits();
expect(0.123)->not->toBeDigits();
expect('0.123')->not->toBeDigits();
```

<a name="expect-toBeObject"></a>
Expand Down

0 comments on commit 5d5aa9b

Please sign in to comment.