diff options
Diffstat (limited to 'tests/library/SSRSTest')
-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'); } } |