Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- \PHPUnit\Framework\MockObject\Generator\Generator::generateClassFromWsdl('GoogleS..
Decoded Output download
--TEST--
\PHPUnit\Framework\MockObject\Generator\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('soap')) echo 'skip: Extension soap is required';
--FILE--
<?php declare(strict_types=1);
require_once __DIR__ . '/../../../bootstrap.php';
$generator = new \PHPUnit\Framework\MockObject\Generator\Generator;
print $generator->generateClassFromWsdl(
__DIR__ . '/../../../_files/GoogleSearch.wsdl',
'My\Space\GoogleSearch'
);
--EXPECTF--
declare(strict_types=1);
namespace My\Space;
class GoogleSearch extends \SoapClient
{
public function __construct($wsdl, array $options)
{
parent::__construct('%s/GoogleSearch.wsdl', $options);
}
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
{
}
public function doGetCachedPage($key, $url)
{
}
public function doSpellingSuggestion($key, $phrase)
{
}
}
?>
Did this file decode correctly?
Original Code
--TEST--
\PHPUnit\Framework\MockObject\Generator\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('soap')) echo 'skip: Extension soap is required';
--FILE--
<?php declare(strict_types=1);
require_once __DIR__ . '/../../../bootstrap.php';
$generator = new \PHPUnit\Framework\MockObject\Generator\Generator;
print $generator->generateClassFromWsdl(
__DIR__ . '/../../../_files/GoogleSearch.wsdl',
'My\\Space\\GoogleSearch'
);
--EXPECTF--
declare(strict_types=1);
namespace My\Space;
class GoogleSearch extends \SoapClient
{
public function __construct($wsdl, array $options)
{
parent::__construct('%s/GoogleSearch.wsdl', $options);
}
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
{
}
public function doGetCachedPage($key, $url)
{
}
public function doSpellingSuggestion($key, $phrase)
{
}
}
Function Calls
None |
Stats
MD5 | 85dd8ea4d8dd8ff483be39d27abd8dc6 |
Eval Count | 0 |
Decode Time | 98 ms |