Mercurial > hg > isophonics-drupal-site
annotate vendor/phpunit/phpunit-mock-objects/tests/Generator/wsdl_class.phpt @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
rev | line source |
---|---|
Chris@14 | 1 --TEST-- |
Chris@14 | 2 \PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch') |
Chris@14 | 3 --SKIPIF-- |
Chris@14 | 4 <?php |
Chris@14 | 5 if (!extension_loaded('soap')) echo 'skip: SOAP extension is required'; |
Chris@14 | 6 ?> |
Chris@14 | 7 --FILE-- |
Chris@14 | 8 <?php |
Chris@14 | 9 require __DIR__ . '/../../vendor/autoload.php'; |
Chris@14 | 10 |
Chris@14 | 11 $generator = new \PHPUnit\Framework\MockObject\Generator; |
Chris@14 | 12 |
Chris@14 | 13 print $generator->generateClassFromWsdl( |
Chris@14 | 14 __DIR__ . '/../_fixture/GoogleSearch.wsdl', |
Chris@14 | 15 'GoogleSearch' |
Chris@14 | 16 ); |
Chris@14 | 17 ?> |
Chris@14 | 18 --EXPECTF-- |
Chris@14 | 19 class GoogleSearch extends \SoapClient |
Chris@14 | 20 { |
Chris@14 | 21 public function __construct($wsdl, array $options) |
Chris@14 | 22 { |
Chris@14 | 23 parent::__construct('%s/GoogleSearch.wsdl', $options); |
Chris@14 | 24 } |
Chris@14 | 25 |
Chris@14 | 26 public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe) |
Chris@14 | 27 { |
Chris@14 | 28 } |
Chris@14 | 29 |
Chris@14 | 30 public function doGetCachedPage($key, $url) |
Chris@14 | 31 { |
Chris@14 | 32 } |
Chris@14 | 33 |
Chris@14 | 34 public function doSpellingSuggestion($key, $phrase) |
Chris@14 | 35 { |
Chris@14 | 36 } |
Chris@14 | 37 } |