summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/phpdbg_break_next.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/tests/phpdbg_break_next.phpt')
-rw-r--r--sapi/phpdbg/tests/phpdbg_break_next.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/sapi/phpdbg/tests/phpdbg_break_next.phpt b/sapi/phpdbg/tests/phpdbg_break_next.phpt
new file mode 100644
index 0000000000..37ee2e8282
--- /dev/null
+++ b/sapi/phpdbg/tests/phpdbg_break_next.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Test phpdbg_break_next() function
+--PHPDBG--
+r
+c
+q
+--EXPECTF--
+[Successful compilation of %s]
+prompt> A
+[Breakpoint #0 added at %s]
+[Breakpoint #0 in %s at %s:5, hits: 1]
+>00005: echo 'B';
+ 00006:
+prompt> B
+[Script ended normally]
+prompt>
+--FILE--
+<?php
+
+echo 'A';
+phpdbg_break_next();
+echo 'B';