X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FHashTagDetectionTests.php;h=483d7135e1592b2e9656d037b12fa130b667f695;hb=8b8450f9ad96c1ca267e5362457b0200429bf42b;hp=4f0b31b0df054749c21e393300a989e924ce76bf;hpb=3400f6f431436552d3bef81a4b25733db2cdd9b6;p=quix0rs-gnu-social.git diff --git a/tests/HashTagDetectionTests.php b/tests/HashTagDetectionTests.php index 4f0b31b0df..483d7135e1 100644 --- a/tests/HashTagDetectionTests.php +++ b/tests/HashTagDetectionTests.php @@ -6,6 +6,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { } define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); +define('STATUSNET', true); define('LACONICA', true); require_once INSTALLDIR . '/lib/common.php'; @@ -27,8 +28,20 @@ class HashTagDetectionTests extends PHPUnit_Framework_TestCase return array( array('hello', 'hello'), - array('#hello', - '#'), + array('#hello people', + '# people'), + array('"#hello" people', + '"#" people'), + array('say "#hello" people', + 'say "#" people'), + array('say (#hello) people', + 'say (#) people'), + array('say [#hello] people', + 'say [#] people'), + array('say {#hello} people', + 'say {#} people'), + array('say \'#hello\' people', + 'say \'#\' people'), ); } }