X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2FHashTagDetectionTest.php;h=9afe346571e10cd1856dabe517a53b45ea724d4f;hb=c5cf2c4c94794a1aeea32a427ddd50e157fa893d;hp=71137b0b5415e50247975c531b3503ad2a3e4994;hpb=3ff67b3bc185be255d0b54f7f9af7c9578b4330b;p=quix0rs-gnu-social.git
diff --git a/tests/HashTagDetectionTest.php b/tests/HashTagDetectionTest.php
index 71137b0b54..9afe346571 100644
--- a/tests/HashTagDetectionTest.php
+++ b/tests/HashTagDetectionTest.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 HashTagDetectionTest 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'),
);
}
}