*/\r
public function testAutonameNoLength() {\r
$autoname1=autoname(0);\r
- $this->assertEquals(0, count($autoname1));\r
+ $this->assertEquals(0, strlen($autoname1));\r
}\r
/**
*/\r
public function testAutonameNegativeLength() {\r
$autoname1=autoname(-23);\r
- $this->assertEquals(0, count($autoname1));\r
+ $this->assertEquals(0, strlen($autoname1));\r
}\r
\r
// public function testAutonameMaxLength() {\r
$autoname2=autoname(1);\r
$this->assertEquals(1, count($autoname2));
-
- $this->assertFalse($autoname1==$autoname2); \r
+
+ // The following test is problematic, with only 26 possibilities
+ // generating the same thing twice happens often aka
+ // birthday paradox
+// $this->assertFalse($autoname1==$autoname2); \r
}
}
\ No newline at end of file