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

assertStringContainsString doesn't display the specified message #315

Open
efcor opened this issue Oct 24, 2024 · 0 comments
Open

assertStringContainsString doesn't display the specified message #315

efcor opened this issue Oct 24, 2024 · 0 comments

Comments

@efcor
Copy link

efcor commented Oct 24, 2024

Hi, I was directed to this repo by @crynobone for an output issue I noticed in Laravel Dusk, and we think the issue actually lies in this repo. See laravel/dusk#1146.

Essentially, if I do $this->assertStringContainsString('foo', 'bar', 'My custom message.'); in a Dusk test (clean Laravel install and Dusk install), the "My custom message" is missing from the output. However, if I do $this->assertSame('foo', 'bar', 'My custom message.'); the "My custom message" is present in the output.

$this->assertSame('foo', 'bar', 'My custom message.');
Screenshot 2024-10-24 at 11 27 48 AM

$this->assertStringContainsString('foo', 'bar', 'My custom message.');
Screenshot 2024-10-24 at 11 27 57 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant