Skip to content

Commit 10a4d87

Browse files
committed
fix test case
1 parent 41e6e29 commit 10a4d87

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def cmd_run(command)
88
pipe.each { |line|
99
print "+ " + line
1010
}
11+
$?.to_i
1112
}
1213
end
1314

tests/integration/tests/MultipleRequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ public function testRequest()
77
$data = fastcgi_get_contents("localhost:9000/home/travis/build/chobie/php-protocolbuffers/tests/integration/src/MultipleRequest.php");
88
// NOTE(chobie): check segmentation fault
99
$data = fastcgi_get_contents("localhost:9000/home/travis/build/chobie/php-protocolbuffers/tests/integration/src/MultipleRequest.php");
10-
list($_, $body) = preg_split("/\r?\n/", $data, 2);
1110

11+
list($_, $body) = preg_split("/\r?\n\r?\n/", $data, 2);
1212
$user = \pecl\protocolbuffers\User::parseFromString($body);
13-
$this->assertInstanceOf('\pecl\protocolbuffers\User', \pecl\protocolbuffers\User);
13+
$this->assertInstanceOf('\pecl\protocolbuffers\User', $user);
1414
$this->assertEquals("12345", $user->getUserId());
1515
$this->assertEquals("chobie", $user->getName());
1616
}

0 commit comments

Comments
 (0)