File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ public function testGet404(): void
90
90
{
91
91
$ client = static ::createClient (['debug ' => false ]);
92
92
93
+ if (method_exists ($ client , 'useHtml5Parser ' )) {
94
+ $ client ->useHtml5Parser (false );
95
+ }
96
+
93
97
try {
94
98
$ client ->request ('GET ' , '/missing-page ' );
95
99
@@ -113,6 +117,10 @@ public function testGetBadRequest(): void
113
117
{
114
118
$ client = static ::createClient (['debug ' => false ]);
115
119
120
+ if (method_exists ($ client , 'useHtml5Parser ' )) {
121
+ $ client ->useHtml5Parser (false );
122
+ }
123
+
116
124
$ client ->request ('GET ' , '/bad-request ' );
117
125
118
126
$ response = $ client ->getResponse ();
@@ -127,6 +135,10 @@ public function testGet500(): void
127
135
{
128
136
$ client = static ::createClient ();
129
137
138
+ if (method_exists ($ client , 'useHtml5Parser ' )) {
139
+ $ client ->useHtml5Parser (false );
140
+ }
141
+
130
142
try {
131
143
$ client ->request ('GET ' , '/exception ' );
132
144
You can’t perform that action at this time.
0 commit comments