Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions src/Lib/Interfaces/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,30 +345,28 @@ public function dontSeeLink(string $text, string $url = ''): void;
public function seeInCurrentUrl(string $uri): void;

/**
* Checks that the current URL is equal to the given string.
* Unlike `seeInCurrentUrl`, this only matches the full URL.
* Checks that the current URL (path) is equal to the given string.
*
* ```php
* <?php
* // to match root url
* // to match the home page
* $I->seeCurrentUrlEquals('/');
* ```
*/
public function seeCurrentUrlEquals(string $uri): void;

/**
* Checks that the current URL matches the given regular expression.
* Checks that the current URL (path) matches the given regular expression.
*
* ```php
* <?php
* // to match root url
* $I->seeCurrentUrlMatches('~^/users/(\d+)~');
* $I->seeCurrentUrlMatches('~^/users/\d+$~');
* ```
*/
public function seeCurrentUrlMatches(string $uri): void;

/**
* Checks that the current URI doesn't contain the given string.
* Checks that the current URI (path) doesn't contain the given string.
*
* ```php
* <?php
Expand All @@ -378,7 +376,7 @@ public function seeCurrentUrlMatches(string $uri): void;
public function dontSeeInCurrentUrl(string $uri): void;

/**
* Checks that the current URL doesn't equal the given string.
* Checks that the current URL (path) doesn't equal the given string.
* Unlike `dontSeeInCurrentUrl`, this only matches the full URL.
*
* ```php
Expand All @@ -390,12 +388,12 @@ public function dontSeeInCurrentUrl(string $uri): void;
public function dontSeeCurrentUrlEquals(string $uri): void;

/**
* Checks that current url doesn't match the given regular expression.
* Checks that current URL (path) doesn't match the given regular expression.
*
* ```php
* <?php
* // to match root url
* $I->dontSeeCurrentUrlMatches('~^/users/(\d+)~');
* $I->dontSeeCurrentUrlMatches('~^/users/\d+$~');
* ```
*/
public function dontSeeCurrentUrlMatches(string $uri): void;
Expand Down