📄 Viewing: recursive_debug_info.phpt

--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*
}

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests