File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ foreach ($tests as $test) {
34
34
}
35
35
}
36
36
$ buf1 = ob_get_clean ();
37
+ if ($ buf1 === false ) {
38
+ throw new \AssertionError ("Could not flush buffer " );
39
+ }
37
40
38
41
gc_enable ();
39
42
gc_collect_cycles ();
@@ -48,6 +51,9 @@ foreach ($tests as $test) {
48
51
}
49
52
}
50
53
$ buf2 = ob_get_clean ();
54
+ if ($ buf2 === false ) {
55
+ throw new \AssertionError ("Could not flush buffer " );
56
+ }
51
57
52
58
if ($ buf1 === $ buf2 ) {
53
59
echo "OK! \n" ;
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ foreach ($tests as $test) {
32
32
}
33
33
}
34
34
$ buf1 = ob_get_clean ();
35
+ if ($ buf1 === false ) {
36
+ throw new \AssertionError ("Could not flush buffer " );
37
+ }
35
38
36
39
foreach ($ tests as $ test ) {
37
40
$ test = reset ($ test );
@@ -49,6 +52,9 @@ foreach ($tests as $test) {
49
52
}
50
53
}
51
54
$ buf2 = ob_get_clean ();
55
+ if ($ buf2 === false ) {
56
+ throw new \AssertionError ("Could not flush buffer " );
57
+ }
52
58
53
59
if ($ buf1 === $ buf2 ) {
54
60
echo "OK! \n" ;
You can’t perform that action at this time.
0 commit comments