File: bin/.phpunit/phpunit-7.5-0/tests/end-to-end/mock-objects/generator/wsdl_class_partial.phpt

Recommend this page to a friend!
  Classes of Paulo Henrique  >  symfony-dual-login  >  bin/.phpunit/phpunit-7.5-0/tests/end-to-end/mock-objects/generator/wsdl_class_partial.phpt  >  Download  
File: bin/.phpunit/phpunit-7.5-0/tests/end-to-end/mock-objects/generator/wsdl_class_partial.phpt
Role: Example script
Content type: text/plain
Description: Example script
Class: symfony-dual-login
API to get user details using OAuth authentication
Author: By
Last change:
Date: 1 month ago
Size: 814 bytes
 

Contents

Class file image Download
--TEST--
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch', array('doGoogleSearch'))
--SKIPIF--
<?php
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
?>
--FILE--
<?php
require __DIR__ . '/../../../../vendor/autoload.php';

$generator = new \PHPUnit\Framework\MockObject\Generator;

print
$generator->generateClassFromWsdl(
   
__DIR__ . '/../../../_files/GoogleSearch.wsdl',
   
'GoogleSearch',
    array(
'doGoogleSearch')
);
?>
--EXPECTF--
class GoogleSearch extends \SoapClient
{
    public function __construct($wsdl, array $options)
    {
        parent::__construct('%s/GoogleSearch.wsdl', $options);
    }

    public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
    {
    }
}


For more information send a message to info at phpclasses dot org.