Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Ignore list.
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', 'ignore_list'=>array('object')));
9
 
10
class object {
11
    public $key1 = 'foo';
12
    public $key2 = 'bar';
13
}
14
 
15
$a = array(
16
 
17
    1 => new object(),
18
    2 => array(TRUE, 123, 123.45)
19
);
20
 
21
echo $vd->toString($a);
22
 
23
?>
24
--EXPECT--
25
array(3) {
26
 
27
                  fox jumped over
28
                  the lazy dog
29
  1 => object(object) Not parsed.
30
  2 => array(3) {
31
 
32
    1 => int 123
33
    2 => float 123.45
34
  }
35
}