Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (33 sloc) 0.722 kB
de3c62b @derickr - Added the xdebug.overload_var_dump setting which allows you to turn…
authored
1 --TEST--
903e2fb @derickr Tests clean-up (probably only part 1 though...)
authored
2 Test for correct display with non overloaded var_dump()
de3c62b @derickr - Added the xdebug.overload_var_dump setting which allows you to turn…
authored
3 --INI--
4 xdebug.default_enable=1
5 xdebug.auto_trace=0
6 xdebug.profiler_enable=0
7 html_errors=1
8 date.timezone=Europe/Oslo
9 xdebug.var_display_max_children=11
10 xdebug.overload_var_dump=0
11 --FILE--
12 <?php
13 class TimeStuff {
14 private $timestamp;
15
16 function TimeStuff($ts = null)
17 {
18 $this->timestamp = $ts === null ? time() : $ts;
19 }
20 }
21
22 $ts1 = new TimeStuff(1092515106);
23
24 var_dump($ts1);
5263931 @derickr - Get rid of ZE1 tests
authored
25 ini_set('xdebug.overload_var_dump', 1); // has no effect, because it's INI_SYSTEM/INI_PERDIR
de3c62b @derickr - Added the xdebug.overload_var_dump setting which allows you to turn…
authored
26 var_dump($ts1);
27 ?>
5263931 @derickr - Get rid of ZE1 tests
authored
28 --EXPECTF--
29 object(TimeStuff)#1 (1) {
30 ["timestamp%sprivat%s]=>
de3c62b @derickr - Added the xdebug.overload_var_dump setting which allows you to turn…
authored
31 int(1092515106)
32 }
5263931 @derickr - Get rid of ZE1 tests
authored
33 object(TimeStuff)#1 (1) {
34 ["timestamp%sprivat%s]=>
de3c62b @derickr - Added the xdebug.overload_var_dump setting which allows you to turn…
authored
35 int(1092515106)
36 }
Something went wrong with that request. Please try again.