comparison vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_partial.phpt @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 --TEST--
2 PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch', array('doGoogleSearch'))
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
11 $generator = new PHPUnit_Framework_MockObject_Generator;
12
13 print $generator->generateClassFromWsdl(
14 dirname(dirname(__FILE__)) . '/_fixture/GoogleSearch.wsdl',
15 'GoogleSearch',
16 array('doGoogleSearch')
17 );
18 ?>
19 --EXPECTF--
20 class GoogleSearch extends \SoapClient
21 {
22 public function __construct($wsdl, array $options)
23 {
24 parent::__construct('%s/GoogleSearch.wsdl', $options);
25 }
26
27 public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
28 {
29 }
30 }