summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/009-value-object.phpt
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-29 13:35:42 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-29 13:35:42 +0100
commitb21f7778fb106a425467c7ee5819e544ef0a2de8 (patch)
tree24e99c5f57f9228fd6633e9037782bf0d57a52d7 /tests/php/phpt/variables/009-value-object.phpt
parent7b7efa4f80dc5c9d26b59087270a8d89fedcc808 (diff)
activated all tests, and slightly modified one test which has wrong expected output in the test script
Diffstat (limited to 'tests/php/phpt/variables/009-value-object.phpt')
-rw-r--r--tests/php/phpt/variables/009-value-object.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/009-value-object.phpt b/tests/php/phpt/variables/009-value-object.phpt
new file mode 100644
index 0000000..c45cae8
--- /dev/null
+++ b/tests/php/phpt/variables/009-value-object.phpt
@@ -0,0 +1,24 @@
+--TEST--
+Test Php::Value object #1
+--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
+
+
+$object = TestVariables\value_object1();
+
+//$object = (object)array("property1" => "value1", "property2" => "value2");
+
+var_export($object);
+
+
+
+--EXPECT--
+stdClass::__set_state(array(
+ 'property1' => 'value1',
+ 'property2' => 'value2',
+)) \ No newline at end of file