xref: /PHP-8.2/sapi/phpdbg/tests/next_001.phpt (revision 60fbd6df)
1--TEST--
2Test next command on function boundaries
3--PHPDBG--
4b 4
5r
6n
7
8
9q
10--EXPECTF--
11[Successful compilation of %s]
12prompt> [Breakpoint #0 added at %s:4]
13prompt> [Breakpoint #0 at %s:4, hits: 1]
14>00004: 	echo 0 . PHP_EOL;
15 00005: }
16 00006:
17prompt> 0
18>00005: }
19 00006:
20 00007: foo();
21prompt> >00008: echo 1 . PHP_EOL;
22 00009:
23prompt> 1
24>00009:
25prompt>
26
27--FILE--
28<?php
29
30function foo() {
31	echo 0 . PHP_EOL;
32}
33
34foo();
35echo 1 . PHP_EOL;
36