1--TEST-- 2toString() : object. 3--FILE-- 4<?php 5 6error_reporting(E_ALL); 7require_once 'Var_Dump.php'; 8$vd = new Var_Dump(array('display_mode' => 'Text')); 9 10class object { 11 public $key1 = "The quick brown\nfox jumped over\nthe lazy dog"; 12 public $key2 = array(TRUE, 123, 123.45); 13 public $key3 = NULL; 14} 15 16echo $vd->toString(new object()); 17 18?> 19--EXPECTREGEX-- 20object\(object\)(#[0-9]+ )?\(3\) { 21 key1 => string\(44\) The quick brown 22 fox jumped over 23 the lazy dog 24 key2 => array\(3\) { 25 0 => bool true 26 1 => int 123 27 2 => float 123.45 28 } 29 key3 => NULL 30}