Skip to content

Commit

Permalink
add docs for toBeUrl() expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPurvis committed Oct 9, 2023
1 parent 866b18a commit 79f3291
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions expectations.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ With the Pest expectation API, you have access to an extensive collection of ind
- [`toHaveCamelCaseKeys()`](#expect-toHaveCamelCaseKeys)
- [`toHaveStudlyCaseKeys()`](#expect-toHaveStudlyCaseKeys)
- [`toHaveSameSize()`](#expect-toHaveSameSize)
- [`toBeUrl()`](#expect-toBeUrl)
- [`toBeUuid()`](#expect-toBeUuid)

</div>
Expand Down Expand Up @@ -826,6 +827,15 @@ This expectation ensures that the size of `$value` and the provided iterable are
expect(['foo', 'bar'])->toHaveSameSize(['baz', 'bazz']);
```

<a name="expect-toBeUrl"></a>
### `toBeUrl()`

This expectation ensures that `$value` is a URL.

```php
expect('https://pestphp.com/')->toBeUrl();
```

<a name="expect-toBeUuid"></a>
### `toBeUuid()`

Expand Down

0 comments on commit 79f3291

Please sign in to comment.