Changed the regex delimiter for "The url should match"
Using / as a regex delimiter when matching an url is a pain because it forces to escape all / in the url (and there more often / than " in an URL).
This commit is contained in:
@@ -186,7 +186,7 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
||||
/**
|
||||
* Checks, that current page PATH matches regular expression.
|
||||
*
|
||||
* @Then /^the (?i)url(?-i) should match (?P<pattern>\/([^\/]|\\\/)*\/)$/
|
||||
* @Then /^the (?i)url(?-i) should match (?P<pattern>"([^"]|\\")*")$/
|
||||
*/
|
||||
public function assertUrlRegExp($pattern)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user