tester icon indicating copy to clipboard operation
tester copied to clipboard

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

Open petrparolek opened this issue 6 years ago • 1 comments

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 avatar Sep 24 '19 12:09 petrparolek

Related to #350

milo avatar Sep 24 '19 12:09 milo