@@ -220,7 +220,7 @@ public function testSetHeaders()
220220 $ this ->assertTrue (is_resource (SoapClient::getSoapClient ()->_stream_context ));
221221
222222 $ o = stream_context_get_options (SoapClient::getSoapClient ()->_stream_context );
223- $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) > 0 );
223+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) !== false );
224224 }
225225 /**
226226 *
@@ -238,7 +238,8 @@ public function testSetHeadersOnExistingHeaders()
238238 $ this ->assertTrue (is_resource (SoapClient::getSoapClient ()->_stream_context ));
239239
240240 $ o = stream_context_get_options (SoapClient::getSoapClient ()->_stream_context );
241- $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' . "\r\n" . 'X-Header-ID: X-Header-ID-Value ' ) > 0 );
241+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) !== false );
242+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-ID: X-Header-ID-Value ' ) !== false );
242243 }
243244 /**
244245 *
@@ -269,7 +270,8 @@ public function testSetHeadersOnExistingHttpsHeaders()
269270 'X-HEADER ' => 'X-VALUE ' ,
270271 ),
271272 ), $ o ['https ' ]);
272- $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' . "\r\n" . 'X-Header-ID: X-Header-ID-Value ' ) > 0 );
273+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) !== false );
274+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-ID: X-Header-ID-Value ' ) !== false );
273275 }
274276 /**
275277 *
@@ -298,7 +300,8 @@ public function testSetHeadersOnExistingHttpHeaders()
298300 $ this ->assertSame (array (
299301 'X-HEADER ' => 'X-VALUE ' ,
300302 ), $ o ['http ' ]['Auth ' ]);
301- $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' . "\r\n" . 'X-Header-ID: X-Header-ID-Value ' ) > 0 );
303+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) !== false );
304+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-ID: X-Header-ID-Value ' ) !== false );
302305 }
303306 /**
304307 *
@@ -315,7 +318,7 @@ public function testGetStreamContext()
315318 $ this ->assertTrue (is_resource ($ soapClient ->getStreamContext ()));
316319
317320 $ o = stream_context_get_options ($ soapClient ->getStreamContext ());
318- $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) > 0 );
321+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) !== false );
319322 }
320323 /**
321324 *
@@ -360,7 +363,8 @@ public function testSetHeadersOnExistingHttpHeadersWithGetStreamContextOptions()
360363 $ this ->assertSame (array (
361364 'X-HEADER ' => 'X-VALUE ' ,
362365 ), $ o ['http ' ]['Auth ' ]);
363- $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' . "\r\n" . 'X-Header-ID: X-Header-ID-Value ' ) > 0 );
366+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-Name: X-Header-Value ' ) !== false );
367+ $ this ->assertTrue (strpos ($ o ['http ' ]['header ' ], 'X-Header-ID: X-Header-ID-Value ' ) !== false );
364368 }
365369 /**
366370 *
0 commit comments