xref: /php-src/sapi/phpdbg/tests/stdin_001.phpt (revision ded3d984)
1--TEST--
2Test stdin input with breakpoints
3--PHPDBG--
4stdin foo
5<?php
6
7echo "Hello, world!\n";
8foo
9b 3
10r
11c
12r
13q
14--EXPECT--
15prompt> [Successful compilation of stdin input]
16prompt> [Breakpoint #0 added at Standard input code:3]
17prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
18>00003: echo "Hello, world!\n";
19 00004:
20prompt> Hello, world!
21[Script ended normally]
22prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
23>00003: echo "Hello, world!\n";
24 00004:
25prompt>
26