1--TEST-- 2PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch') 3--SKIPIF-- 4<?php 5if (!extension_loaded('soap')) echo 'skip: SOAP extension is required'; 6?> 7--FILE-- 8<?php 9require __DIR__ . '/../../../vendor/autoload.php'; 10 11$generator = new PHPUnit_Framework_MockObject_Generator; 12 13print $generator->generateClassFromWsdl( 14 __DIR__ . '/../../_fixture/GoogleSearch.wsdl', 15 'My\\Space\\GoogleSearch' 16); 17?> 18--EXPECTF-- 19namespace My\Space; 20 21class GoogleSearch extends \SoapClient 22{ 23 public function __construct($wsdl, array $options) 24 { 25 parent::__construct('%s/GoogleSearch.wsdl', $options); 26 } 27 28 public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe) 29 { 30 } 31 32 public function doGetCachedPage($key, $url) 33 { 34 } 35 36 public function doSpellingSuggestion($key, $phrase) 37 { 38 } 39} 40