summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/009-value-object.phpt
blob: c45cae8b946fb23e1c7d65b06b226c1a7c7a99ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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',
))