Skip to content

Commit

Permalink
Merge pull request #237 from JonPurvis/add-to-be-url-docs
Browse files Browse the repository at this point in the history
add docs for `toBeUrl()` expectation
  • Loading branch information
nunomaduro authored Oct 10, 2023
2 parents 866b18a + 79f3291 commit ce0ae54
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 ce0ae54

Please sign in to comment.