breakpoints_007.phpt 354 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Basic method breakpoints
  3. --PHPDBG--
  4. b bar::foo
  5. r
  6. q
  7. --EXPECTF--
  8. [Successful compilation of %s]
  9. prompt> [Breakpoint #0 added at bar::foo]
  10. prompt> [Breakpoint #0 in bar::foo() at %s:5, hits: 1]
  11. >00005: var_dump($bar);
  12. 00006: }
  13. 00007: }
  14. prompt>
  15. --FILE--
  16. <?php
  17. class bar {
  18. function foo($bar) {
  19. var_dump($bar);
  20. }
  21. }
  22. (new bar)->foo("test");