[PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2013-01-14 Thread Derick Rethans
Commit:45a429200cdf7e918ef3aabc0eb23441f6e8eda3
Author:Derick Rethans git...@derickrethans.nl Mon, 17 Dec 2012 
16:35:52 +
Parents:   1cc61f09279b26b9acc82461c7b77051355346ad
Branches:  PHP-5.5 master

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=45a429200cdf7e918ef3aabc0eb23441f6e8eda3

Log:
Added a test case for DateTimePoint.

Changed paths:
  A  ext/date/tests/date_time_point.phpt


Diff:
diff --git a/ext/date/tests/date_time_point.phpt 
b/ext/date/tests/date_time_point.phpt
new file mode 100644
index 000..810eeca
--- /dev/null
+++ b/ext/date/tests/date_time_point.phpt
@@ -0,0 +1,167 @@
+--TEST--
+Tests for DateTimePoint.
+--INI--
+date.timezone=Europe/London
+--FILE--
+?php
+$tz = new DateTimeZone(Asia/Tokyo);
+$current = 2012-12-27 16:24:08;
+
+function dump($a, $b, $c)
+{
+   echo 'orig:', $a-format('Y-m-d H:i:s e'), \n;
+   echo 'copy:', $b-format('Y-m-d H:i:s e'), \n;
+   echo 'changed: ', $c-format('Y-m-d H:i:s e'), \n;
+}
+
+echo modify():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+
+echo \nadd():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsub():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsetTimezone():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = new DateTimePoint($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+
+echo \nsetTime():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetIsoDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+
+echo \nsetTimestamp():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+?
+--EXPECT--
+modify():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+orig:2012-12-29 16:24:08 Europe/London
+copy:2012-12-29 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+
+add():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+orig:2012-12-29 16:24:10 Europe/London
+copy:2012-12-29 16:24:10 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+
+sub():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+orig:2012-12-25 16:24:06 Europe/London
+copy:2012-12-25 16:24:06 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+
+setTimezone():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-28 01:24:08 Asia/Tokyo
+copy:2012-12-28 01:24:08 Asia/Tokyo
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+
+setTime():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+orig:2012-12-27 05:07:19 Europe/London
+copy:2012-12-27 05:07:19 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+
+setDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+orig:0005-07-19 16:24:08 Europe/London
+copy:0005-07-19 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+
+setIsoDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+orig:2012-01-14 16:24:08 Europe/London
+copy:2012-01-14 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+
+setTimestamp():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2033-10-06 18:57:02 

[PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2013-01-12 Thread Derick Rethans
Commit:21d7efef922956a233cc2bfdfba139a88fdc6c4f
Author:Derick Rethans git...@derickrethans.nl Mon, 17 Dec 2012 
16:35:52 +
Parents:   9657591e35b0466b8d86284a78f8cba8bbd4e4b9
Branches:  immutable-date

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=21d7efef922956a233cc2bfdfba139a88fdc6c4f

Log:
Added a test case for DateTimePoint.

Changed paths:
  A  ext/date/tests/date_time_point.phpt


Diff:
diff --git a/ext/date/tests/date_time_point.phpt 
b/ext/date/tests/date_time_point.phpt
new file mode 100644
index 000..810eeca
--- /dev/null
+++ b/ext/date/tests/date_time_point.phpt
@@ -0,0 +1,167 @@
+--TEST--
+Tests for DateTimePoint.
+--INI--
+date.timezone=Europe/London
+--FILE--
+?php
+$tz = new DateTimeZone(Asia/Tokyo);
+$current = 2012-12-27 16:24:08;
+
+function dump($a, $b, $c)
+{
+   echo 'orig:', $a-format('Y-m-d H:i:s e'), \n;
+   echo 'copy:', $b-format('Y-m-d H:i:s e'), \n;
+   echo 'changed: ', $c-format('Y-m-d H:i:s e'), \n;
+}
+
+echo modify():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+
+echo \nadd():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsub():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsetTimezone():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = new DateTimePoint($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+
+echo \nsetTime():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetIsoDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+
+echo \nsetTimestamp():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+?
+--EXPECT--
+modify():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+orig:2012-12-29 16:24:08 Europe/London
+copy:2012-12-29 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+
+add():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+orig:2012-12-29 16:24:10 Europe/London
+copy:2012-12-29 16:24:10 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+
+sub():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+orig:2012-12-25 16:24:06 Europe/London
+copy:2012-12-25 16:24:06 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+
+setTimezone():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-28 01:24:08 Asia/Tokyo
+copy:2012-12-28 01:24:08 Asia/Tokyo
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+
+setTime():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+orig:2012-12-27 05:07:19 Europe/London
+copy:2012-12-27 05:07:19 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+
+setDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+orig:0005-07-19 16:24:08 Europe/London
+copy:0005-07-19 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+
+setIsoDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+orig:2012-01-14 16:24:08 Europe/London
+copy:2012-01-14 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+
+setTimestamp():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2033-10-06 18:57:02 

[PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2012-12-19 Thread Derick Rethans
Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02
Author:Derick Rethans git...@derickrethans.nl Mon, 17 Dec 2012 
16:35:52 +
Parents:   d4acb579df4c78acaaff3e90698277e62aac
Branches:  immutable-date

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=7c74531e884aaa0a0bf6db76adb0e203cdb81c02

Log:
Added a test case for DateTimePoint.

Changed paths:
  A  ext/date/tests/date_time_point.phpt


Diff:
diff --git a/ext/date/tests/date_time_point.phpt 
b/ext/date/tests/date_time_point.phpt
new file mode 100644
index 000..810eeca
--- /dev/null
+++ b/ext/date/tests/date_time_point.phpt
@@ -0,0 +1,167 @@
+--TEST--
+Tests for DateTimePoint.
+--INI--
+date.timezone=Europe/London
+--FILE--
+?php
+$tz = new DateTimeZone(Asia/Tokyo);
+$current = 2012-12-27 16:24:08;
+
+function dump($a, $b, $c)
+{
+   echo 'orig:', $a-format('Y-m-d H:i:s e'), \n;
+   echo 'copy:', $b-format('Y-m-d H:i:s e'), \n;
+   echo 'changed: ', $c-format('Y-m-d H:i:s e'), \n;
+}
+
+echo modify():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+
+echo \nadd():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsub():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsetTimezone():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = new DateTimePoint($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+
+echo \nsetTime():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetIsoDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+
+echo \nsetTimestamp():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+?
+--EXPECT--
+modify():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+orig:2012-12-29 16:24:08 Europe/London
+copy:2012-12-29 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+
+add():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+orig:2012-12-29 16:24:10 Europe/London
+copy:2012-12-29 16:24:10 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+
+sub():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+orig:2012-12-25 16:24:06 Europe/London
+copy:2012-12-25 16:24:06 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+
+setTimezone():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-28 01:24:08 Asia/Tokyo
+copy:2012-12-28 01:24:08 Asia/Tokyo
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+
+setTime():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+orig:2012-12-27 05:07:19 Europe/London
+copy:2012-12-27 05:07:19 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+
+setDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+orig:0005-07-19 16:24:08 Europe/London
+copy:0005-07-19 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+
+setIsoDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+orig:2012-01-14 16:24:08 Europe/London
+copy:2012-01-14 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+
+setTimestamp():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2033-10-06 18:57:02 

[PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2012-12-17 Thread Derick Rethans
Commit:86c0ac9e759aa615683d3b396813e1922911e4a6
Author:Derick Rethans git...@derickrethans.nl Mon, 17 Dec 2012 
16:35:52 +
Parents:   db554e1c6504fe0ed0845ea637e0d7064014ad31
Branches:  immutable-date

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=86c0ac9e759aa615683d3b396813e1922911e4a6

Log:
Added a test case for DateTimePoint.

Changed paths:
  A  ext/date/tests/date_time_point.phpt


Diff:
diff --git a/ext/date/tests/date_time_point.phpt 
b/ext/date/tests/date_time_point.phpt
new file mode 100644
index 000..810eeca
--- /dev/null
+++ b/ext/date/tests/date_time_point.phpt
@@ -0,0 +1,167 @@
+--TEST--
+Tests for DateTimePoint.
+--INI--
+date.timezone=Europe/London
+--FILE--
+?php
+$tz = new DateTimeZone(Asia/Tokyo);
+$current = 2012-12-27 16:24:08;
+
+function dump($a, $b, $c)
+{
+   echo 'orig:', $a-format('Y-m-d H:i:s e'), \n;
+   echo 'copy:', $b-format('Y-m-d H:i:s e'), \n;
+   echo 'changed: ', $c-format('Y-m-d H:i:s e'), \n;
+}
+
+echo modify():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-modify(+2 days);
+dump($v, $z, $x);
+
+echo \nadd():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-add(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsub():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-sub(new DateInterval(P2DT2S));
+dump($v, $z, $x);
+
+echo \nsetTimezone():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+$v = new DateTimePoint($current);
+$z = $v;
+$x = $z-setTimezone($tz);
+dump($v, $z, $x);
+
+echo \nsetTime():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTime(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setDate(5, 7, 19);
+dump($v, $z, $x);
+
+echo \nsetIsoDate():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setIsoDate(2012, 2, 6);
+dump($v, $z, $x);
+
+echo \nsetTimestamp():\n;
+$v = date_create_point($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+$v = date_create($current);
+$z = $v;
+$x = $z-setTimestamp(2012234222);
+dump($v, $z, $x);
+?
+--EXPECT--
+modify():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+orig:2012-12-29 16:24:08 Europe/London
+copy:2012-12-29 16:24:08 Europe/London
+changed: 2012-12-29 16:24:08 Europe/London
+
+add():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+orig:2012-12-29 16:24:10 Europe/London
+copy:2012-12-29 16:24:10 Europe/London
+changed: 2012-12-29 16:24:10 Europe/London
+
+sub():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+orig:2012-12-25 16:24:06 Europe/London
+copy:2012-12-25 16:24:06 Europe/London
+changed: 2012-12-25 16:24:06 Europe/London
+
+setTimezone():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-28 01:24:08 Asia/Tokyo
+copy:2012-12-28 01:24:08 Asia/Tokyo
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-28 01:24:08 Asia/Tokyo
+
+setTime():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+orig:2012-12-27 05:07:19 Europe/London
+copy:2012-12-27 05:07:19 Europe/London
+changed: 2012-12-27 05:07:19 Europe/London
+
+setDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+orig:0005-07-19 16:24:08 Europe/London
+copy:0005-07-19 16:24:08 Europe/London
+changed: 0005-07-19 16:24:08 Europe/London
+
+setIsoDate():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+orig:2012-01-14 16:24:08 Europe/London
+copy:2012-01-14 16:24:08 Europe/London
+changed: 2012-01-14 16:24:08 Europe/London
+
+setTimestamp():
+orig:2012-12-27 16:24:08 Europe/London
+copy:2012-12-27 16:24:08 Europe/London
+changed: 2033-10-06 18:57:02