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