gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

wsdl_class.phpt (881B)


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