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