[xdebug-dev] svn: /xdebug/trunk/tests/ xdebug_var_dump_non_overload.phpt

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 26 Oct 2010 22:22:33 +0000

derick Tue, 26 Oct 2010 22:22:33 +0000

Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3359&root=xdebug

Log:
- Make this test simpler; it's not needed to test the functionality.

Changed paths:
    U xdebug/trunk/tests/xdebug_var_dump_non_overload.phpt

Modified: xdebug/trunk/tests/xdebug_var_dump_non_overload.phpt
===================================================================
--- xdebug/trunk/tests/xdebug_var_dump_non_overload.phpt 2010-10-26 21:24:15 UTC (rev 3358)
+++ xdebug/trunk/tests/xdebug_var_dump_non_overload.phpt 2010-10-26 22:22:33 UTC (rev 3359)
@@ -15,163 +15,25 @@
 <?php
         class TimeStuff {
                 private $timestamp;
- private $user_defined;
- private $self;
- protected $tm;
- public $date;

                 function TimeStuff($ts = null)
                 {
- $this->self = &$this;
                         $this->timestamp = $ts === null ? time() : $ts;
- $this->user_defined = ($ts !== null);
- $this->date = date("Y-m-d H:i:s T", $this->timestamp);
- $this->tm = getdate($this->timestamp);
                 }
         }

         $ts1 = new TimeStuff(1092515106);

         var_dump($ts1);
- ini_set('xdebug.overload_var_dump', 1);
+ ini_set('xdebug.overload_var_dump', 1); // has no effect, because it's INI_SYSTEM/INI_PERDIR
         var_dump($ts1);
 ?>
---EXPECT--
-object(TimeStuff)#1 (5) {
- ["timestamp":"TimeStuff":private]=>
+--EXPECTF--
+object(TimeStuff)#1 (1) {
+ ["timestamp%sprivat%s]=>
   int(1092515106)
- ["user_defined":"TimeStuff":private]=>
- bool(true)
- ["self":"TimeStuff":private]=>
- object(TimeStuff)#1 (5) {
- ["timestamp":"TimeStuff":private]=>
- int(1092515106)
- ["user_defined":"TimeStuff":private]=>
- bool(true)
- ["self":"TimeStuff":private]=>
- *RECURSION*
- ["tm":protected]=>
- array(11) {
- ["seconds"]=>
- int(6)
- ["minutes"]=>
- int(25)
- ["hours"]=>
- int(22)
- ["mday"]=>
- int(14)
- ["wday"]=>
- int(6)
- ["mon"]=>
- int(8)
- ["year"]=>
- int(2004)
- ["yday"]=>
- int(226)
- ["weekday"]=>
- string(8) "Saturday"
- ["month"]=>
- string(6) "August"
- [0]=>
- int(1092515106)
- }
- ["date"]=>
- string(24) "2004-08-14 22:25:06 CEST"
- }
- ["tm":protected]=>
- array(11) {
- ["seconds"]=>
- int(6)
- ["minutes"]=>
- int(25)
- ["hours"]=>
- int(22)
- ["mday"]=>
- int(14)
- ["wday"]=>
- int(6)
- ["mon"]=>
- int(8)
- ["year"]=>
- int(2004)
- ["yday"]=>
- int(226)
- ["weekday"]=>
- string(8) "Saturday"
- ["month"]=>
- string(6) "August"
- [0]=>
- int(1092515106)
- }
- ["date"]=>
- string(24) "2004-08-14 22:25:06 CEST"
 }
-object(TimeStuff)#1 (5) {
- ["timestamp":"TimeStuff":private]=>
+object(TimeStuff)#1 (1) {
+ ["timestamp%sprivat%s]=>
   int(1092515106)
- ["user_defined":"TimeStuff":private]=>
- bool(true)
- ["self":"TimeStuff":private]=>
- object(TimeStuff)#1 (5) {
- ["timestamp":"TimeStuff":private]=>
- int(1092515106)
- ["user_defined":"TimeStuff":private]=>
- bool(true)
- ["self":"TimeStuff":private]=>
- *RECURSION*
- ["tm":protected]=>
- array(11) {
- ["seconds"]=>
- int(6)
- ["minutes"]=>
- int(25)
- ["hours"]=>
- int(22)
- ["mday"]=>
- int(14)
- ["wday"]=>
- int(6)
- ["mon"]=>
- int(8)
- ["year"]=>
- int(2004)
- ["yday"]=>
- int(226)
- ["weekday"]=>
- string(8) "Saturday"
- ["month"]=>
- string(6) "August"
- [0]=>
- int(1092515106)
- }
- ["date"]=>
- string(24) "2004-08-14 22:25:06 CEST"
- }
- ["tm":protected]=>
- array(11) {
- ["seconds"]=>
- int(6)
- ["minutes"]=>
- int(25)
- ["hours"]=>
- int(22)
- ["mday"]=>
- int(14)
- ["wday"]=>
- int(6)
- ["mon"]=>
- int(8)
- ["year"]=>
- int(2004)
- ["yday"]=>
- int(226)
- ["weekday"]=>
- string(8) "Saturday"
- ["month"]=>
- string(6) "August"
- [0]=>
- int(1092515106)
- }
- ["date"]=>
- string(24) "2004-08-14 22:25:06 CEST"
 }
Received on Tue Oct 26 2010 - 23:22:34 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST