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