~canonical-sysadmins/wordpress/openstack-objectstorage-k8s

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class.phpt

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
11
$generator = new PHPUnit_Framework_MockObject_Generator;
 
12
 
 
13
print $generator->generateClassFromWsdl(
 
14
  dirname(dirname(__FILE__)) . '/_fixture/GoogleSearch.wsdl',
 
15
  'GoogleSearch'
 
16
);
 
17
?>
 
18
--EXPECTF--
 
19
class GoogleSearch extends \SoapClient
 
20
{
 
21
    public function __construct($wsdl, array $options)
 
22
    {
 
23
        parent::__construct('%s/GoogleSearch.wsdl', $options);
 
24
    }
 
25
 
 
26
    public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
 
27
    {
 
28
    }
 
29
 
 
30
    public function doGetCachedPage($key, $url)
 
31
    {
 
32
    }
 
33
 
 
34
    public function doSpellingSuggestion($key, $phrase)
 
35
    {
 
36
    }
 
37
}