PHP Classes

File: vendor/phpunit/phpunit-mock-objects/tests/Generator/wsdl_class_partial.phpt

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/phpunit/phpunit-mock-objects/tests/Generator/wsdl_class_partial.phpt   Download  
File: vendor/phpunit/phpunit-mock-objects/tests/Generator/wsdl_class_partial.phpt
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 804 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__ . '/../_fixture/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)
    {
    }
}