mirror of
https://github.com/php/php-src.git
synced 2024-12-27 02:39:39 +08:00
378a05f0de
Also add a few more in-depth tests related to $argv, breakpoints and uncaught exceptions
35 lines
550 B
PHP
35 lines
550 B
PHP
--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");
|
|
}
|
|
|