We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddc4193 commit 80c621aCopy full SHA for 80c621a
2 files changed
CHANGELOG.md
@@ -1,3 +1,7 @@
1
+## v1.2.6
2
+
3
+* Fix: Update json regex to fit more different types of json (ld, problem...)
4
5
## v1.2.5
6
7
* Fix: don't re-scope the expectation callback, to avoid issues with static closures
src/FunctionalSmokeTester.php
@@ -127,7 +127,7 @@ public function runFunctionalTest(FunctionalTestData $testData): void {
127
128
if ($testData->getIsJsonResponseExpectation()) {
129
$header = $res->headers->get('Content-Type');
130
- Assert::assertMatchesRegularExpression('~application/(ld\+)?json~iU', $header);
+ Assert::assertMatchesRegularExpression('~application/(\w+\+)?json~iU', $header);
131
132
$resBody = $res->getContent();
133
$json = @json_decode($resBody, true);
0 commit comments