X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fautoname_test.php;h=702e05befc33ff210cfe3297f07cf0036a408cf5;hb=e54414692e6b302cbd3bee88587d3f12c812bf1a;hp=2987c83869611ee2e9c6d39e27e8177ba9e88f65;hpb=3a1c78bd75213e5ed3ad5f5ed4a1349fcf7ce4d5;p=friendica.git diff --git a/tests/autoname_test.php b/tests/autoname_test.php index 2987c83869..702e05befc 100644 --- a/tests/autoname_test.php +++ b/tests/autoname_test.php @@ -50,7 +50,7 @@ class AutonameTest extends PHPUnit_Framework_TestCase { */ public function testAutonameNegativeLength() { $autoname1=autoname(-23); - $this->assertEquals(0, count($autoname1)); + $this->assertEquals(0, strlen($autoname1)); } // public function testAutonameMaxLength() { @@ -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