Skip to content

Commit 4857be7

Browse files
committed
Cleanup
1 parent 9dff9d3 commit 4857be7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/bson/bug2505.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ foreach ($tests as $test) {
3434
}
3535
}
3636
$buf1 = ob_get_clean();
37+
if ($buf1 === false) {
38+
throw new \AssertionError("Could not flush buffer");
39+
}
3740

3841
gc_enable();
3942
gc_collect_cycles();
@@ -48,6 +51,9 @@ foreach ($tests as $test) {
4851
}
4952
}
5053
$buf2 = ob_get_clean();
54+
if ($buf2 === false) {
55+
throw new \AssertionError("Could not flush buffer");
56+
}
5157

5258
if ($buf1 === $buf2) {
5359
echo "OK!\n";

tests/bson/bug2505_2.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ foreach ($tests as $test) {
3232
}
3333
}
3434
$buf1 = ob_get_clean();
35+
if ($buf1 === false) {
36+
throw new \AssertionError("Could not flush buffer");
37+
}
3538

3639
foreach ($tests as $test) {
3740
$test = reset($test);
@@ -49,6 +52,9 @@ foreach ($tests as $test) {
4952
}
5053
}
5154
$buf2 = ob_get_clean();
55+
if ($buf2 === false) {
56+
throw new \AssertionError("Could not flush buffer");
57+
}
5258

5359
if ($buf1 === $buf2) {
5460
echo "OK!\n";

0 commit comments

Comments
 (0)