Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
toString() : object.
3
--FILE--
4
<?php
5
 
6
error_reporting(E_ALL);
7
require_once 'Var_Dump.php';
8
$vd = new Var_Dump(array('display_mode' => 'Text'));
9
 
10
class 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
 
16
echo $vd->toString(new object());
17
 
18
?>
19
--EXPECTREGEX--
20
object\(object\)(#[0-9]+ )?\(3\) {
21
  key1 => string\(44\) The quick brown
22
                     fox jumped over
23
                     the lazy dog
24
  key2 => array\(3\) {
25
 
26
    1 => int 123
27
    2 => float 123.45
28
  }
29
  key3 => NULL
30
}