Files
php-src/Zend/tests/debug_info/__debugInfo_reference.phpt
Daniel Scherzer 886ee6d981 Zend/tests: organize some tests with sub directories (11) (#22731)
Add directories for tests relating to
- `break` statements
- functions with by-ref returns
- `class_exists()`
- dynamic properties
- error handlers
- error suppression with `@`
- `get_object_vars()`
- `highlight_string()` and `highlight_file()`
- interfaces
- `is_callable()`
- iterators
- shutdown functions
- streams

As well as organizing a couple of tests into existing sub directories along the
way

Work towards GH-15631
2026-09-30 15:52:59 +01:00

23 lines
265 B
PHP

--TEST--
__debugInfo with reference return
--FILE--
<?php
class Test {
private $tmp = ['x' => 1];
public function &__debugInfo(): array
{
return $this->tmp;
}
}
var_dump(new Test);
?>
--EXPECT--
object(Test)#1 (1) {
["x"]=>
int(1)
}