aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/autoname_test.php7
-rw-r--r--tests/get_tags_test.php4
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/autoname_test.php b/tests/autoname_test.php
index c83e4a471..702e05bef 100644
--- a/tests/autoname_test.php
+++ b/tests/autoname_test.php
@@ -67,7 +67,10 @@ class AutonameTest extends PHPUnit_Framework_TestCase {
$autoname2=autoname(1);
$this->assertEquals(1, count($autoname2));
-
- $this->assertFalse($autoname1==$autoname2);
+
+ // The following test is problematic, with only 26 possibilities
+ // generating the same thing twice happens often aka
+ // birthday paradox
+// $this->assertFalse($autoname1==$autoname2);
}
} \ No newline at end of file
diff --git a/tests/get_tags_test.php b/tests/get_tags_test.php
index e5c6485de..40f016747 100644
--- a/tests/get_tags_test.php
+++ b/tests/get_tags_test.php
@@ -202,8 +202,8 @@ class GetTagsTest extends PHPUnit_Framework_TestCase {
}
$this->assertEquals("cid:15", $inform);
- $this->assertEquals("@[url=http://justatest.de]Mike Lastname[/url],#[url=baseurl/search?search=test%20case]test case[/url]", $str_tags);
- $this->assertEquals("hi @[url=http://justatest.de]Mike Lastname[/url] This is a #[url=baseurl/search?search=test%20case]test case[/url]", $text);
+ $this->assertEquals("@[url=http://justatest.de]Mike Lastname[/url],#[url=baseurl/search?tag=test%20case]test case[/url]", $str_tags);
+ $this->assertEquals("hi @[url=http://justatest.de]Mike Lastname[/url] This is a #[url=baseurl/search?tag=test%20case]test case[/url]", $text);
}