X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FHashTagDetectionTests.php;h=1fbc98983d66ab09a400b45990c9794103bf000f;hb=refs%2Fheads%2Fupstream-changes%2Fgoogle-analytics-removal;hp=483d7135e1592b2e9656d037b12fa130b667f695;hpb=3afcdc18f7bfd23ac780b9f27c47582c1b41bb83;p=quix0rs-gnu-social.git diff --git a/tests/HashTagDetectionTests.php b/tests/HashTagDetectionTests.php index 483d7135e1..1fbc98983d 100644 --- a/tests/HashTagDetectionTests.php +++ b/tests/HashTagDetectionTests.php @@ -6,8 +6,8 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { } define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -define('STATUSNET', true); -define('LACONICA', true); +define('GNUSOCIAL', true); +define('STATUSNET', true); // compatibility require_once INSTALLDIR . '/lib/common.php'; @@ -42,6 +42,21 @@ class HashTagDetectionTests extends PHPUnit_Framework_TestCase 'say {#} people'), array('say \'#hello\' people', 'say \'#\' people'), + + // Unicode legit letters + array('#éclair yummy', + '# yummy'), + array('#维基百科 zh.wikipedia!', + '# zh.wikipedia!'), + array('#Россия russia', + '# russia'), + + // Unicode punctuators -- the ideographic "," separates the tag, just as "," does + array('#维基百科,zh.wikipedia!', + '#,zh.wikipedia!'), + array('#维基百科,zh.wikipedia!', + '#,zh.wikipedia!'), + ); } }