ob_014.phpt 240 B

123456789101112131415
  1. --TEST--
  2. output buffering - failure
  3. --FILE--
  4. <?php
  5. ob_start("str_rot13");
  6. echo "foo\n";
  7. try {
  8. ob_end_flush();
  9. } catch (TypeError $e) {
  10. echo $e->getMessage(), "\n";
  11. }
  12. ?>
  13. --EXPECT--
  14. foo
  15. str_rot13() expects exactly 1 argument, 2 given