xref: /PHP-8.2/ext/soap/tests/bug49898.phpt (revision 7f2f0c00)
1--TEST--
2Test for bug #49898: SoapClient::__getCookies() implementation
3--CREDITS--
4Boro Sitnikovski <buritomath@yahoo.com>
5--EXTENSIONS--
6soap
7--FILE--
8<?php
9$client = new SoapClient(null, array('uri' => 'mo:http://www.w3.org/', 'location' => 'http://some.url'));
10$client->__setCookie("CookieTest", "HelloWorld");
11var_dump($client->__getCookies()['CookieTest'][0]);
12?>
13--EXPECT--
14string(10) "HelloWorld"
15