initial commit
This commit is contained in:
36
exp/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt
vendored
Normal file
36
exp/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
--TEST--
|
||||
PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once 'PHPUnit/Autoload.php';
|
||||
require_once 'Text/Template.php';
|
||||
|
||||
print PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl(
|
||||
dirname(dirname(__FILE__)) . '/_files/GoogleSearch.wsdl',
|
||||
'GoogleSearch'
|
||||
);
|
||||
?>
|
||||
--EXPECTF--
|
||||
class GoogleSearch extends \SOAPClient
|
||||
{
|
||||
public function __construct($wsdl, array $options)
|
||||
{
|
||||
parent::__construct('%s/GoogleSearch.wsdl', $options);
|
||||
}
|
||||
|
||||
public function doGetCachedPage($key, $url)
|
||||
{
|
||||
}
|
||||
|
||||
public function doSpellingSuggestion($key, $phrase)
|
||||
{
|
||||
}
|
||||
|
||||
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user