diff options
author | Arron Woods <aw@chartblocks.com> | 2015-04-15 13:25:00 +0100 |
---|---|---|
committer | Arron Woods <aw@chartblocks.com> | 2015-04-15 13:25:00 +0100 |
commit | 3b65ac367fce26a4c87f81debb15a5cc08959162 (patch) | |
tree | c59e3eb6834ca43700190e9d398b1d71c0e9fa60 | |
parent | 53d161d414ed923d828bca529c02da295f6395a4 (diff) | |
download | php-ssrs-3b65ac367fce26a4c87f81debb15a5cc08959162.zip php-ssrs-3b65ac367fce26a4c87f81debb15a5cc08959162.tar.gz php-ssrs-3b65ac367fce26a4c87f81debb15a5cc08959162.tar.bz2 |
Make sure we don't send content-length, curl will
-rwxr-xr-x | tests/library/SSRSTest/Soap/NTLMTest.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/library/SSRSTest/Soap/NTLMTest.php b/tests/library/SSRSTest/Soap/NTLMTest.php index 39a01c3..4bd72e5 100755 --- a/tests/library/SSRSTest/Soap/NTLMTest.php +++ b/tests/library/SSRSTest/Soap/NTLMTest.php @@ -115,6 +115,8 @@ class NTLMTest extends \PHPUnit_Framework_TestCase { 'Connection: Keep-Alive', 'User-Agent: PHP-SOAP-CURL', ), $headers); + + $this->assertArrayNotHasKey('Content-Length', $headers, 'Should not have content length'); } public function testGenerateHeadersWithData() { @@ -126,10 +128,11 @@ class NTLMTest extends \PHPUnit_Framework_TestCase { 'Connection: Keep-Alive', 'User-Agent: PHP-SOAP-CURL', 'Content-Type: text/xml; charset=utf-8', - 'Content-Length: 4' ), $headers); + + $this->assertArrayNotHasKey('Content-Length', $headers, 'Should not have content length'); } - + public function testGenerateHeadersWithAction() { $ntlm = new \SSRS\Soap\NTLM('http://'); $headers = $ntlm->generateHeaders('http://localhost/reports/', null, 'TEST'); @@ -140,6 +143,8 @@ class NTLMTest extends \PHPUnit_Framework_TestCase { 'User-Agent: PHP-SOAP-CURL', 'SOAPAction: "TEST"' ), $headers); + + $this->assertArrayNotHasKey('Content-Length', $headers, 'Should not have content length'); } } |