xref: /PHP-7.3/ext/soap/tests/bug49898.phpt (revision aebb23e4)
1--TEST--
2Test for bug #49898: SoapClient::__getCookies() implementation
3--CREDITS--
4Boro Sitnikovski <buritomath@yahoo.com>
5--SKIPIF--
6<?php require_once('skipif.inc'); ?>
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