From 79f329120d1e71af049517679f80acdbc6b35853 Mon Sep 17 00:00:00 2001 From: JonPurvis Date: Mon, 9 Oct 2023 11:54:29 +0100 Subject: [PATCH] add docs for toBeUrl() expectation --- expectations.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/expectations.md b/expectations.md index fc09bac..74fa396 100644 --- a/expectations.md +++ b/expectations.md @@ -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) @@ -826,6 +827,15 @@ This expectation ensures that the size of `$value` and the provided iterable are expect(['foo', 'bar'])->toHaveSameSize(['baz', 'bazz']); ``` + +### `toBeUrl()` + +This expectation ensures that `$value` is a URL. + +```php +expect('https://pestphp.com/')->toBeUrl(); +``` + ### `toBeUuid()`