recursive_debug_info.phpt   [plain text]


--TEST--
Test recursive __debugInfo() method
--FILE--
<?php

class Test {
    public function __debugInfo() {
        return [$this];
    }
}

var_dump(new Test);

?>
--EXPECT--
object(Test)#1 (1) {
  [0]=>
  *RECURSION*
}