From e8334afd7f2920b706a3d28250a3e2b6dbd49538 Mon Sep 17 00:00:00 2001 From: valmat Date: Tue, 18 Mar 2014 15:18:11 +0600 Subject: Unit tests. For description see https://github.com/CopernicaMarketingSoftware/PHP-CPP/pull/25#issuecomment-37882236 --- tests/php/phpt/valueiterator/002.phpt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/php/phpt/valueiterator/002.phpt (limited to 'tests/php/phpt/valueiterator/002.phpt') diff --git a/tests/php/phpt/valueiterator/002.phpt b/tests/php/phpt/valueiterator/002.phpt new file mode 100644 index 0000000..59d5dad --- /dev/null +++ b/tests/php/phpt/valueiterator/002.phpt @@ -0,0 +1,22 @@ +--TEST-- +Iterate object of stdClass +--DESCRIPTION-- +Iterate object of stdClass +--SKIPIF-- + +--FILEEOF-- + '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 \ No newline at end of file -- cgit v1.2.3