summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/breakpoints_007.phpt
blob: 900ccee083d362711c1afaf3eac73abf91a6d7e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Basic method breakpoints
--PHPDBG--
b bar::foo
r
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Breakpoint #0 added at bar::foo]
prompt> [Breakpoint #0 in bar::foo() at %s:5, hits: 1]
>00005: 		var_dump($bar);
 00006: 	}
 00007: }
prompt> 
--FILE--
<?php

class bar {
	function foo($bar) {
		var_dump($bar);
	}
}

(new bar)->foo("test");