summaryrefslogtreecommitdiff
path: root/tests/php/phpt/valueiterator/002.phpt
blob: fdffdf7959af0ab5fa0e244a38fe78f2a834923e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Iterate object of stdClass
--DESCRIPTION--
Iterate object of stdClass
--SKIPIF--
<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
--FILEEOF--
<?php
require dirname(__FILE__) . '/../../include/valueiterator/1.php';

$arr  = array('qwe' => 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',);
$obj  = (object)$arr;

TestValueIterator\loopValue($obj);

echo PHP_EOL;
--EXPECT--
Array/Object contains 0 items
[qwe]=qweqweqweqw
[0]=5
[asd]=«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»
[zxccvx]=sdfsecvyh6bug6yfty