- */\r
- public function testGetTags() {\r
- $text="hi @Mike, I'm just writing #test_cases, "\r
- ." so @somebody@friendica.com may change #things. Of course I "\r
- ."look for a lot of #pitfalls, like #tags at the end of a sentence "\r
- ."@comment. I hope noone forgets about @fullstops.because that might"\r
- ." break #things. @Mike@campino@friendica.eu is also #nice, isn't it? "\r
- ."Now, add a @first_last tag. ";\r
- \r
- $tags=get_tags($text);\r
-\r
- $this->assertTrue(in_array("@Mike", $tags));\r
- $this->assertTrue(in_array("#test_cases", $tags));\r
- $this->assertTrue(in_array("@somebody@friendica.com", $tags));\r
- $this->assertTrue(in_array("#things", $tags));\r
- $this->assertTrue(in_array("#pitfalls", $tags));\r
- $this->assertTrue(in_array("#tags", $tags));\r
- $this->assertTrue(in_array("@comment", $tags));\r
- $this->assertTrue(in_array("@fullstops.because", $tags));\r
- $this->assertTrue(in_array("#things", $tags));\r
- $this->assertTrue(in_array("@Mike", $tags));\r
- $this->assertTrue(in_array("#nice", $tags));\r
+ */
+ public function testGetTags() {
+ $text="hi @Mike, I'm just writing #test_cases, "
+ ." so @somebody@friendica.com may change #things. Of course I "
+ ."look for a lot of #pitfalls, like #tags at the end of a sentence "
+ ."@comment. I hope noone forgets about @fullstops.because that might"
+ ." break #things. @Mike@campino@friendica.eu is also #nice, isn't it? "
+ ."Now, add a @first_last tag. ";
+
+ $tags=get_tags($text);
+
+ $this->assertTrue(in_array("@Mike", $tags));
+ $this->assertTrue(in_array("#test_cases", $tags));
+ $this->assertTrue(in_array("@somebody@friendica.com", $tags));
+ $this->assertTrue(in_array("#things", $tags));
+ $this->assertTrue(in_array("#pitfalls", $tags));
+ $this->assertTrue(in_array("#tags", $tags));
+ $this->assertTrue(in_array("@comment", $tags));
+ $this->assertTrue(in_array("@fullstops.because", $tags));
+ $this->assertTrue(in_array("#things", $tags));
+ $this->assertTrue(in_array("@Mike", $tags));
+ $this->assertTrue(in_array("#nice", $tags));