@@ -116,7 +116,7 @@ final protected static function assertMethodAllowed(Schema $schema, string $path
116116 final protected static function assertResponseDefined (Schema $ schema , string $ template , string $ method , string $ status , string $ msg = '' ): void
117117 {
118118 Assert::assertTrue (
119- $ schema ->isResponseDefined ($ template , strtolower ($ method ), $ status ),
119+ $ schema ->isResponseDefined ($ template , mb_strtolower ($ method ), $ status ),
120120 $ msg ?: "Operation \"{$ method } {$ template }\" does not support response code \"{$ status }\""
121121 );
122122 }
@@ -149,15 +149,15 @@ final protected static function assertRequestHeaders(Schema $schema, string $pat
149149 {
150150 Assert::assertThat (
151151 $ headers ,
152- new HeadersConstraint ($ schema ->getRequestHeaderSchemas ($ path , strtolower ($ method ))),
152+ new HeadersConstraint ($ schema ->getRequestHeaderSchemas ($ path , mb_strtolower ($ method ))),
153153 $ msg
154154 );
155155
156156 if ($ schema ->isRequestBodyDefined ($ path , $ method ) && isset ($ headers ['Content-Type ' ][0 ])) {
157157 self ::assertRequestContentType (
158158 $ schema ,
159159 $ path ,
160- strtolower ($ method ),
160+ mb_strtolower ($ method ),
161161 $ headers ['Content-Type ' ][0 ],
162162 $ msg
163163 );
@@ -169,7 +169,7 @@ final protected static function assertResponseHeaders(Schema $schema, string $pa
169169 Assert::assertThat (
170170 $ headers ,
171171 new HeadersConstraint (
172- $ schema ->getResponseHeaderSchemas ($ path , strtolower ($ method ), $ status )
172+ $ schema ->getResponseHeaderSchemas ($ path , mb_strtolower ($ method ), $ status )
173173 ),
174174 $ msg
175175 );
@@ -186,7 +186,7 @@ final protected static function assertResponseHeaders(Schema $schema, string $pa
186186 }
187187
188188 if (isset ($ headers ['Allow ' ])) {
189- if (isset ($ headers ['Allow ' ][0 ]) && strpos ($ headers ['Allow ' ][0 ], ', ' ) !== false ) {
189+ if (isset ($ headers ['Allow ' ][0 ]) && mb_strpos ($ headers ['Allow ' ][0 ], ', ' ) !== false ) {
190190 $ headers ['Allow ' ] = preg_split ('#\s*,\s*# ' , $ headers ['Allow ' ][0 ], -1 , PREG_SPLIT_NO_EMPTY );
191191 }
192192
@@ -200,7 +200,7 @@ final protected static function assertResponseHeaders(Schema $schema, string $pa
200200
201201 final protected static function assertRequestBody (Schema $ schema , string $ path , string $ method , StreamInterface $ body = null , string $ msg = '' ): void
202202 {
203- $ bodySchema = $ schema ->getRequestBodySchema ($ path , strtolower ($ method ));
203+ $ bodySchema = $ schema ->getRequestBodySchema ($ path , mb_strtolower ($ method ));
204204
205205 if ($ bodySchema ) {
206206 Assert::assertThat (
@@ -215,7 +215,7 @@ final protected static function assertRequestBody(Schema $schema, string $path,
215215
216216 final protected static function assertResponseBody (Schema $ schema , string $ path , string $ method , string $ status , StreamInterface $ body = null , string $ msg = '' ): void
217217 {
218- $ bodySchema = $ schema ->getResponseBodySchema ($ path , strtolower ($ method ), $ status );
218+ $ bodySchema = $ schema ->getResponseBodySchema ($ path , mb_strtolower ($ method ), $ status );
219219
220220 if ($ bodySchema ) {
221221 Assert::assertThat (
0 commit comments