Several WS and CS fixes
This commit is contained in:
parent
efc6500ead
commit
7f96a20f66
|
@ -77,7 +77,7 @@ class SoapClient extends \SoapClient
|
||||||
private $lastResponse = '';
|
private $lastResponse = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Last response.
|
* Soap kernel.
|
||||||
*
|
*
|
||||||
* @var \BeSimple\SoapCommon\SoapKernel
|
* @var \BeSimple\SoapCommon\SoapKernel
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
namespace BeSimple\SoapClient;
|
namespace BeSimple\SoapClient;
|
||||||
|
|
||||||
use BeSimple\SoapCommon\AbstractSoapBuilder;
|
use BeSimple\SoapCommon\AbstractSoapBuilder;
|
||||||
|
use BeSimple\SoapCommon\Helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fluent interface builder for SoapClient instance.
|
* Fluent interface builder for SoapClient instance.
|
||||||
|
|
|
@ -5,7 +5,21 @@ use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
||||||
|
|
||||||
require '../bootstrap.php';
|
require '../bootstrap.php';
|
||||||
|
|
||||||
echo '<pre>';
|
class base64Binary
|
||||||
|
{
|
||||||
|
public $_;
|
||||||
|
public $contentType;
|
||||||
|
}
|
||||||
|
|
||||||
|
class AttachmentType
|
||||||
|
{
|
||||||
|
public $fileName;
|
||||||
|
public $binaryData;
|
||||||
|
}
|
||||||
|
|
||||||
|
class AttachmentRequest extends AttachmentType
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'soap_version' => SOAP_1_1,
|
'soap_version' => SOAP_1_1,
|
||||||
|
|
|
@ -5,8 +5,6 @@ use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
||||||
|
|
||||||
require '../bootstrap.php';
|
require '../bootstrap.php';
|
||||||
|
|
||||||
echo '<pre>';
|
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'soap_version' => SOAP_1_1,
|
'soap_version' => SOAP_1_1,
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
||||||
|
|
|
@ -5,8 +5,6 @@ use BeSimple\SoapClient\WsAddressingFilter as BeSimpleWsAddressingFilter;
|
||||||
|
|
||||||
require '../bootstrap.php';
|
require '../bootstrap.php';
|
||||||
|
|
||||||
echo '<pre>';
|
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'soap_version' => SOAP_1_2,
|
'soap_version' => SOAP_1_2,
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
||||||
|
|
|
@ -5,8 +5,6 @@ use BeSimple\SoapClient\WsSecurityFilter as BeSimpleWsSecurityFilter;
|
||||||
|
|
||||||
require '../bootstrap.php';
|
require '../bootstrap.php';
|
||||||
|
|
||||||
echo '<pre>';
|
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'soap_version' => SOAP_1_2,
|
'soap_version' => SOAP_1_2,
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
||||||
|
|
|
@ -23,11 +23,12 @@ class CurlTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
protected function startPhpWebserver()
|
protected function startPhpWebserver()
|
||||||
{
|
{
|
||||||
|
$dir = __DIR__.DIRECTORY_SEPARATOR.'Fixtures';
|
||||||
if ('Windows' == substr(php_uname('s'), 0, 7)) {
|
if ('Windows' == substr(php_uname('s'), 0, 7)) {
|
||||||
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".__DIR__.DIRECTORY_SEPARATOR."Fixtures' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
|
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".$dir."' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
|
||||||
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
|
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
|
||||||
} else {
|
} else {
|
||||||
$shellCommand = "nohup php -S localhost:8000 -t ".__DIR__.DIRECTORY_SEPARATOR."Fixtures &";
|
$shellCommand = "nohup php -S localhost:8000 -t ".$dir." &";
|
||||||
}
|
}
|
||||||
$output = array();
|
$output = array();
|
||||||
exec($shellCommand, $output);
|
exec($shellCommand, $output);
|
||||||
|
|
|
@ -24,11 +24,12 @@ class WsdlDownloaderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
protected function startPhpWebserver()
|
protected function startPhpWebserver()
|
||||||
{
|
{
|
||||||
|
$dir = __DIR__.DIRECTORY_SEPARATOR.'Fixtures';
|
||||||
if ('Windows' == substr(php_uname('s'), 0, 7)) {
|
if ('Windows' == substr(php_uname('s'), 0, 7)) {
|
||||||
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".__DIR__.DIRECTORY_SEPARATOR."Fixtures' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
|
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".$dir."' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
|
||||||
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
|
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
|
||||||
} else {
|
} else {
|
||||||
$shellCommand = "nohup php -S localhost:8000 -t ".__DIR__.DIRECTORY_SEPARATOR."Fixtures &";
|
$shellCommand = "nohup php -S localhost:8000 -t ".$dir." &";
|
||||||
}
|
}
|
||||||
$output = array();
|
$output = array();
|
||||||
exec($shellCommand, $output);
|
exec($shellCommand, $output);
|
||||||
|
|
Loading…
Reference in New Issue