@@ -27,7 +27,7 @@ public function testCorrectFormat(): void
27
27
$ this ->xml ('<response>test</response> ' ),
28
28
$ result ->getBody ()->getContents ()
29
29
);
30
- $ this ->assertSame (['application/xml; UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
30
+ $ this ->assertSame (['application/xml; charset= UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
31
31
}
32
32
33
33
public function testWithEncoding (): void
@@ -41,7 +41,7 @@ public function testWithEncoding(): void
41
41
$ this ->xml ('<response>test</response> ' , '1.0 ' , $ encoding ),
42
42
$ result ->getBody ()->getContents ()
43
43
);
44
- $ this ->assertSame (["application/xml; {$ encoding }" ], $ result ->getHeader ('Content-Type ' ));
44
+ $ this ->assertSame (["application/xml; charset= {$ encoding }" ], $ result ->getHeader ('Content-Type ' ));
45
45
}
46
46
47
47
public function testWithVersion (): void
@@ -55,7 +55,7 @@ public function testWithVersion(): void
55
55
$ this ->xml ('<response>test</response> ' , $ version ),
56
56
$ result ->getBody ()->getContents ()
57
57
);
58
- $ this ->assertSame (['application/xml; UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
58
+ $ this ->assertSame (['application/xml; charset= UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
59
59
}
60
60
61
61
public function testWithRootTag (): void
@@ -68,7 +68,7 @@ public function testWithRootTag(): void
68
68
$ this ->xml ('<exampleRootTag>test</exampleRootTag> ' ),
69
69
$ result ->getBody ()->getContents ()
70
70
);
71
- $ this ->assertSame (['application/xml; UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
71
+ $ this ->assertSame (['application/xml; charset= UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
72
72
}
73
73
74
74
public function testWithoutRootTag (): void
@@ -81,7 +81,7 @@ public function testWithoutRootTag(): void
81
81
$ this ->xml ('<tag>value</tag> ' ),
82
82
$ result ->getBody ()->getContents ()
83
83
);
84
- $ this ->assertSame (['application/xml; UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
84
+ $ this ->assertSame (['application/xml; charset= UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
85
85
}
86
86
87
87
public function testWithEmptyRootTag (): void
@@ -94,7 +94,7 @@ public function testWithEmptyRootTag(): void
94
94
$ this ->xml ('<response/> ' ),
95
95
$ result ->getBody ()->getContents ()
96
96
);
97
- $ this ->assertSame (['application/xml; UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
97
+ $ this ->assertSame (['application/xml; charset= UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
98
98
}
99
99
100
100
public function testWithContentType (): void
@@ -107,7 +107,7 @@ public function testWithContentType(): void
107
107
$ this ->xml ('<response>test</response> ' ),
108
108
$ result ->getBody ()->getContents ()
109
109
);
110
- $ this ->assertSame (['text/xml; UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
110
+ $ this ->assertSame (['text/xml; charset= UTF-8 ' ], $ result ->getHeader ('Content-Type ' ));
111
111
}
112
112
113
113
public function testScalarValues (): void
0 commit comments