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
$this->test->assertEquals(0, strcasecmp($actualType, $contentType), "Expected the response to have the header \"Content-Type\" with value \"{$contentType}\", actual: \"{$actualType}\"");
134
136
}
135
137
136
138
/**
@@ -349,10 +351,10 @@ public function assertJson(): void {
'passed with charset without space' => [null, newResponse(200, ['content-type' => 'text/html;charset=utf-8']), 'text/html'],
129
+
'passed with charset and space' => [null, newResponse(200, ['content-type' => 'text/html; charset=utf-8']), 'text/html'],
130
+
'passed with boundary without space' => [null, newResponse(200, ['content-type' => 'text/html;boundary=----']), 'text/html'],
131
+
'passed with boundary and space' => [null, newResponse(200, ['content-type' => 'text/html; boundary=----']), 'text/html'],
132
+
'passed with charset and boundary' => [null, newResponse(200, ['content-type' => 'text/html;charset=utf-8;boundary=----']), 'text/html'],
128
133
'failed' => ['Expected the response to have the header "Content-Type" with value "text/html", actual: ""', newResponse(200), 'text/html'],
129
134
];
130
135
}
@@ -386,6 +391,8 @@ public static function dataDocument(): array {
386
391
'XML failed' => ['Expected to find at least one element matching the query "//body/p"', newResponse(200, ['Content-Type' => 'text/xml'], '<body></body>'), '//body/p'],
387
392
'invalid content-type' => ['Expected the response to have content-type of either "text/html" or "text/xml", actual: "text/plain"', newResponse(200, ['Content-Type' => 'text/plain'], '<body><p></p></body>'), '//body/p'],
388
393
'no content-type' => ['Expected the response to have content-type of either "text/html" or "text/xml", actual: ""', newResponse(200, [], '<body><p></p></body>'), '//body/p'],
0 commit comments