summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/breakpoints_008.phpt
blob: 3aa7aa2595c15bec69a84d134fc169602101fb2b (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
25
26
27
28
29
30
31
32
33
--TEST--
Test namespaced and non-lowercase breakpoint names
--PHPDBG--
b foo\bar::foo
b \Foo\Bar::Foo
r
c
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Breakpoint #0 added at foo\bar::foo]
prompt> [Breakpoint exists at Foo\Bar::Foo]
prompt> [Breakpoint #0 in foo\bar::foo() at %s:6, hits: 1]
>00006: 			var_dump($bar);
 00007: 		}
 00008: 	}
prompt> string(4) "test"
[Script ended normally]
prompt> 
--FILE--
<?php

namespace Foo {
	class Bar {
		function Foo($bar) {
			var_dump($bar);
		}
	}
}

namespace {
	(new \Foo\Bar)->Foo("test");
}