Download src/php/php-src/sapi/phpdbg/tests/breakpoints_008.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/phpdbg/tests/breakpoints_008.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/phpdbg/tests/breakpoints_008.phpt
-
curl -L -o breakpoints_008.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/phpdbg/tests/breakpoints_008.phpt
549 Bytes
| --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"); | |
| } | |