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/dbg.php | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tests/php/dbg.php (limited to 'tests/php/dbg.php') diff --git a/tests/php/dbg.php b/tests/php/dbg.php new file mode 100644 index 0000000..6f1dabc --- /dev/null +++ b/tests/php/dbg.php @@ -0,0 +1,58 @@ + $v) { + echo "$k\t=>\t$v\n"; + } + echo "\x1b[0m"; + + + TestValueIterator\loopValue($obj); +} + + + +require './include/valueiterator/1.php'; + +#$arr = array('qwe' => 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',); +#$obj = (object)$arr; +#$smpl = new SimpleClass; +#$it = new impIterator; +#$iag1 = new impIterAggr1; +$iag2 = new impIterAggr2; + + +//out($arr); +#out($obj); +#out($smpl); +TestValueIterator\loopValue($iag2); +#out($it); +#out($iag1); +#out($iag2); + + + + + + + + + + + -- cgit v1.2.3