summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArron Woods <aw@chartblocks.com>2015-04-15 13:25:00 +0100
committerArron Woods <aw@chartblocks.com>2015-04-15 13:25:00 +0100
commit3b65ac367fce26a4c87f81debb15a5cc08959162 (patch)
treec59e3eb6834ca43700190e9d398b1d71c0e9fa60 /tests
parent53d161d414ed923d828bca529c02da295f6395a4 (diff)
downloadphp-ssrs-3b65ac367fce26a4c87f81debb15a5cc08959162.zip
php-ssrs-3b65ac367fce26a4c87f81debb15a5cc08959162.tar.gz
php-ssrs-3b65ac367fce26a4c87f81debb15a5cc08959162.tar.bz2
Make sure we don't send content-length, curl will
Diffstat (limited to 'tests')
-rwxr-xr-xtests/library/SSRSTest/Soap/NTLMTest.php9
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');
}
}