No Description

wsdl_class_namespace.phpt 922B

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