Skip to content

Commit 2bb28e5

Browse files
committed
Extend SOAP module sendRequest handling
1 parent 6b32ec7 commit 2bb28e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/SOAP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
class SOAP extends \Codeception\Module
3838
{
3939

40-
protected $config = array('schema' => "", 'schema_url' => 'http://schemas.xmlsoap.org/soap/envelope/');
40+
protected $config = array('schema' => "", 'schema_url' => 'http://schemas.xmlsoap.org/soap/envelope/', 'framework_collect_buffer' => true);
4141
protected $requiredFields = array('endpoint');
4242
/**
4343
* @var \Symfony\Component\BrowserKit\Client
@@ -159,7 +159,7 @@ public function sendSoapRequest($action, $body = "")
159159
$xmlBody->appendChild($call);
160160
$this->debugSection("Request", $req = $xml->C14N());
161161

162-
if ($this->is_functional) {
162+
if ($this->is_functional and $this->config['framework_collect_buffer']) {
163163
$response = $this->processInternalRequest($action, $req);
164164
} else {
165165
$response = $this->processExternalRequest($action, $req);

0 commit comments

Comments
 (0)