summaryrefslogtreecommitdiff
path: root/vendor/zordius/lightncandy/tests/helpers_for_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/zordius/lightncandy/tests/helpers_for_test.php')
-rw-r--r--vendor/zordius/lightncandy/tests/helpers_for_test.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/vendor/zordius/lightncandy/tests/helpers_for_test.php b/vendor/zordius/lightncandy/tests/helpers_for_test.php
index 93a1dbc7..80c3e860 100644
--- a/vendor/zordius/lightncandy/tests/helpers_for_test.php
+++ b/vendor/zordius/lightncandy/tests/helpers_for_test.php
@@ -1,5 +1,12 @@
<?php
+// Class for customized LCRun
+class MyLCRunClass extends LCRun3 {
+ public static function raw($cx, $v) {
+ return '[[DEBUG:raw()=>' . var_export($v, true) . ']]';
+ }
+}
+
// Classes for inputs or helpers
class myClass {
function test() {
@@ -7,7 +14,7 @@ class myClass {
}
function helper2($arg) {
- return "=$arg=";
+ return is_array($arg) ? '=Array=' : "=$arg=";
}
function __call($method, $args) {
@@ -63,9 +70,12 @@ class twoDimensionIterator implements Iterator {
// Custom helpers
function helper1($arg) {
+ $arg = is_array($arg) ? 'Array' : $arg;
return "-$arg-";
}
function alink($u, $t) {
+ $u = is_array($u) ? 'Array' : $u;
+ $t = is_array($t) ? 'Array' : $t;
return "<a href=\"$u\">$t</a>";
}