You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to do some JSON assertions using PHP Matcher, the tests passes, but there is a warning : simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
The exact same test written in PHPUnit style runs without any warning :
The issue comes from the fact that I want to do some assertions like this "url": "/profile/@ulid@".
I the string contains only a ULID, then doing this "url": "@ulid@" works fine.
The reason why I created this is issue here and not on PHPMatcher project is because it works with PHPUnit, which makes me think that there is something wrong with Pest.
This other reason why I think this is a Pest issue is that I already used Pest PHP Matcher in the past, and it was working well. But it was Pest 1. Maybe something changed in Pest 2.
The text was updated successfully, but these errors were encountered:
What Happened
When I want to do some JSON assertions using PHP Matcher, the tests passes, but there is a warning :
simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
The exact same test written in PHPUnit style runs without any warning :
How to Reproduce
Sample Repository
https://github.com/mdacosta/pest-issue
Pest Version
2.34.8
PHP Version
8.3.7, 8.3.8
Operation System
macOS, Linux
Notes
Pest test :
PHPUnit test :
The issue comes from the fact that I want to do some assertions like this
"url": "/profile/@ulid@"
.I the string contains only a ULID, then doing this
"url": "@ulid@"
works fine.The reason why I created this is issue here and not on PHPMatcher project is because it works with PHPUnit, which makes me think that there is something wrong with Pest.
This other reason why I think this is a Pest issue is that I already used Pest PHP Matcher in the past, and it was working well. But it was Pest 1. Maybe something changed in Pest 2.
The text was updated successfully, but these errors were encountered: