Annotation of embedaddon/php/ext/soap/tests/bugs/bug29844.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #29844 (SOAP doesn't return the result of a valid SOAP request)
        !             3: --SKIPIF--
        !             4: <?php require_once('skipif.inc'); ?>
        !             5: --INI--
        !             6: soap.wsdl_cache_enabled=0
        !             7: --FILE--
        !             8: <?php
        !             9: 
        !            10: class hello_world {   
        !            11:   public function hello($to) {
        !            12:     return 'Hello ' . $to;
        !            13:   }    
        !            14: }
        !            15: 
        !            16: class LocalSoapClient extends SoapClient {
        !            17: 
        !            18:   function __construct($wsdl, $options) {
        !            19:     parent::__construct($wsdl, $options);
        !            20:     $this->server = new SoapServer($wsdl, $options);
        !            21:     $this->server->setClass('hello_world');;
        !            22:   }
        !            23: 
        !            24:   function __doRequest($request, $location, $action, $version, $one_way = 0) {
        !            25:     ob_start();
        !            26:     $this->server->handle($request);
        !            27:     $response = ob_get_contents();
        !            28:     ob_end_clean();
        !            29:     return $response;
        !            30:   }
        !            31: 
        !            32: }
        !            33: 
        !            34: $client = new LocalSoapClient(dirname(__FILE__)."/bug29844.wsdl", array("trace"=>1)); 
        !            35: var_dump($client->hello('davey'));
        !            36: ?>
        !            37: --EXPECT--
        !            38: string(11) "Hello davey"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>