breakpoints_008.phpt 549 B

123456789101112131415161718192021222324252627282930313233
  1. --TEST--
  2. Test namespaced and non-lowercase breakpoint names
  3. --PHPDBG--
  4. b foo\bar::foo
  5. b \Foo\Bar::Foo
  6. r
  7. c
  8. q
  9. --EXPECTF--
  10. [Successful compilation of %s]
  11. prompt> [Breakpoint #0 added at foo\bar::foo]
  12. prompt> [Breakpoint exists at Foo\Bar::Foo]
  13. prompt> [Breakpoint #0 in foo\bar::foo() at %s:6, hits: 1]
  14. >00006: var_dump($bar);
  15. 00007: }
  16. 00008: }
  17. prompt> string(4) "test"
  18. [Script ended normally]
  19. prompt>
  20. --FILE--
  21. <?php
  22. namespace Foo {
  23. class Bar {
  24. function Foo($bar) {
  25. var_dump($bar);
  26. }
  27. }
  28. }
  29. namespace {
  30. (new \Foo\Bar)->Foo("test");
  31. }