Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 043e3c3

Browse files
committed
Added md5sum check to testLargeRequest test.
1 parent cdc8b6b commit 043e3c3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/ConnectionTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,18 @@ public function testLargeRequest()
133133

134134
$contentLen = strlen($content);
135135

136+
$contentSum = md5($content);
137+
136138
$i = 0;
137139
do {
138140

139141
$this->c->subscribe(
140142
"saybighello$i",
141-
function ($res) use ($contentLen) {
143+
function ($res) use ($contentLen, $contentSum) {
142144
$gotLen = strlen($res->getBody());
145+
$gotSum = md5($res->getBody());
143146
$this->assertEquals($contentLen, $gotLen);
147+
$this->assertEquals($contentSum, $gotSum);
144148
$res->reply($gotLen);
145149
}
146150
);

0 commit comments

Comments
 (0)