+ }
+
+ /**\r
+ * test with one Person tag.
+ * There's a minor spelling mistake...\r
+ */\r
+ public function testGetTagsShortPersonSpelling() {\r
+ $text="hi @Mike.because";\r
+ \r
+ $tags=get_tags($text);\r
+
+ //correct tags found?\r
+ $this->assertEquals(1, count($tags));\r
+ $this->assertTrue(in_array("@Mike.because", $tags));
+ \r
+ $inform='';\r
+ $str_tags='';\r
+ handle_tag($this->a, $text, $inform, $str_tags, 11, $tags[0]);\r
+ \r
+ $this->assertEquals("cid:15", $inform);
+ $this->assertEquals("@[url=http://justatest.de]Mike Lastname[/url]", $str_tags);
+ $this->assertEquals("hi @[url=http://justatest.de]Mike Lastname[/url].because", $text);\r
+ }
+
+ /**\r
+ * test with two Person tags.
+ * There's a minor spelling mistake...\r
+ */\r
+ public function testGetTagsPerson2Spelling() {\r
+ $text="hi @Mike@campino@friendica.eu";\r
+ \r
+ $tags=get_tags($text);\r
+
+ $this->assertEquals(2, count($tags)); \r
+ $this->assertTrue(in_array("@Mike", $tags));
+ $this->assertTrue(in_array("@campino@friendica.eu", $tags));\r