Skip to content

Commit aab91fc

Browse files
committed
add test for response stub header_size (due to win/lin linebreak diffs
1 parent 96c7bf7 commit aab91fc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/PrestashopWebServiceTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ public function it_is_correctly_installed()
1616
$this->assertInstanceOf(PrestashopWebService::class, Prestashop::getFacadeRoot());
1717
}
1818

19+
/** @test */
20+
public function test_request_is_correct()
21+
{
22+
$requestResponseStub = require('requests/category-schema.php');
23+
24+
list($header, $body) = explode("\n\n", $requestResponseStub[0], 2);
25+
$header_size = strlen($header) + 2;
26+
27+
$this->assertEquals($header_size, $requestResponseStub[1]['header_size']);
28+
}
29+
1930
/** @test */
2031
public function it_can_perform_a_get_request()
2132
{

0 commit comments

Comments
 (0)