summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/010-value-object2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/variables/010-value-object2.phpt')
-rw-r--r--tests/php/phpt/variables/010-value-object2.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/010-value-object2.phpt b/tests/php/phpt/variables/010-value-object2.phpt
new file mode 100644
index 0000000..8697a69
--- /dev/null
+++ b/tests/php/phpt/variables/010-value-object2.phpt
@@ -0,0 +1,24 @@
+--TEST--
+Test Php::Value object #2
+--DESCRIPTION--
+ create empty object of type stdClass
+ object properties can be accessed with square brackets
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+
+
+//date_default_timezone_set('Europe/Amsterdam');
+var_export(TestVariables\value_object2());
+
+
+--EXPECT--
+2014-03-27 00:37:15
+2016-03-31 15:48:00
+7200
+DateTime::__set_state(array(
+ 'date' => '2014-03-27 00:37:15',
+ 'timezone_type' => 3,
+ 'timezone' => 'Europe/Amsterdam',
+)) \ No newline at end of file