summaryrefslogtreecommitdiff
path: root/tests/php/phpt/valueiterator/002.phpt
blob: 59d5dad1c9f9d20245b22b2850fb5bc3e7328329 (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("extention_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