summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-18 22:51:52 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-18 22:51:52 -0800
commitf94fa25e0868e9988ebf7168701dd059b1135fdb (patch)
tree7261998e16145367fe617efd5ac38d9660c5bf27 /modules/gallery_unit_test/helpers
parentcfc0f3d0c0935839e9eedd11322e35e9baaca0df (diff)
Add starts_with().
Diffstat (limited to 'modules/gallery_unit_test/helpers')
-rw-r--r--modules/gallery_unit_test/helpers/test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/helpers/test.php b/modules/gallery_unit_test/helpers/test.php
index 29a7a79a..77948465 100644
--- a/modules/gallery_unit_test/helpers/test.php
+++ b/modules/gallery_unit_test/helpers/test.php
@@ -55,4 +55,8 @@ class test_Core {
}
return $rand;
}
+
+ static function starts_with($outer, $inner) {
+ return strpos($outer, $inner) === 0;
+ }
}