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) {
3434 }
3535}
3636$ buf1 = ob_get_clean ();
37+ if ($ buf1 === false ) {
38+ throw new \AssertionError ("Could not flush buffer " );
39+ }
3740
3841gc_enable ();
3942gc_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
5258if ($ buf1 === $ buf2 ) {
5359 echo "OK! \n" ;
Original file line number Diff line number Diff 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
3639foreach ($ 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
5359if ($ buf1 === $ buf2 ) {
5460 echo "OK! \n" ;
You can’t perform that action at this time.
0 commit comments