From f94fa25e0868e9988ebf7168701dd059b1135fdb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 18 Jan 2010 22:51:52 -0800 Subject: Add starts_with(). --- modules/gallery_unit_test/helpers/test.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gallery_unit_test/helpers') 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; + } } -- cgit v1.2.3