PHP Classes

File: bin/.phpunit/phpunit-7.5-0/tests/end-to-end/mock-objects/generator/wsdl_class.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.phpt   Download  
File: bin/.phpunit/phpunit-7.5-0/tests/end-to-end/mock-objects/generator/wsdl_class.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: 3 years ago
Size: 890 bytes
 

Contents

Class file image Download
--TEST--
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
--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'
);
?>
--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)
    {
    }

    public function doGetCachedPage($key, $url)
    {
    }

    public function doSpellingSuggestion($key, $phrase)
    {
    }
}