Skip to content

Commit

Permalink
more tests for debug functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 7, 2011
1 parent ad814f8 commit 31a694a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions testing/RedUNIT/Blackhole/Misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,27 @@ public function run() {
asrt($obj->property1,'property1');

R::debug(1);
flush();
ob_flush();
ob_clean();
ob_start();
R::exec('SELECT 123');
$out = ob_get_contents();
ob_end_clean();
flush();
pass();
asrt((strpos($out,'SELECT 123')!==false),true);
R::debug(0);
flush();
ob_flush();
ob_clean();
ob_start();
R::exec('SELECT 123');
$out = ob_get_contents();
ob_end_clean();
flush();
pass();
asrt($out,'');
R::debug(0);
pass();
}
Expand Down

0 comments on commit 31a694a

Please sign in to comment.