Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning about wrong regex form in Assert::match() in tester output #413

Closed
petrparolek opened this issue Sep 24, 2019 · 1 comment
Closed

Comments

@petrparolek
Copy link

Example:

$pattern = "sign/in";
$actual = "https://test.dev/sign/in?_fid=j3o0";
\Tester\Assert::match($pattern, $actual);

Current tester output:

Failed: 'https://test.dev/sign/in?_fid=j3o0' should match
       ... 'sign/in' in testAbc()

It would nice something like:

Failed: 'wrong pattern format given.'
Failed: 'https://test.dev/sign/in?_fid=j3o0' should match
       ... 'sign/in' in testAbc()
@petrparolek petrparolek changed the title Warning about wrong regex form in Assert::match() in tester output Add warning about wrong regex form in Assert::match() in tester output Sep 24, 2019
@milo
Copy link
Member

milo commented Sep 24, 2019

Related to #350

@petrparolek petrparolek closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants