diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-27 15:13:02 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-27 15:13:02 -0800 |
commit | 981631752a7571b22d9d8b3a8d7a6632f0a562a3 (patch) | |
tree | 51fb3f6d3a46926e1ea7778d17004f10a288dce7 /tests/unit/AutonameTest.php | |
parent | 4471f580d7a50126d42690f05e81a75f7bbf8084 (diff) | |
parent | f3c0e212bf824df4f6b69abf079b5b138565f59c (diff) | |
download | volse-hubzilla-981631752a7571b22d9d8b3a8d7a6632f0a562a3.tar.gz volse-hubzilla-981631752a7571b22d9d8b3a8d7a6632f0a562a3.tar.bz2 volse-hubzilla-981631752a7571b22d9d8b3a8d7a6632f0a562a3.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'tests/unit/AutonameTest.php')
-rw-r--r-- | tests/unit/AutonameTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/AutonameTest.php b/tests/unit/AutonameTest.php index 9f92f736f..33e237bb9 100644 --- a/tests/unit/AutonameTest.php +++ b/tests/unit/AutonameTest.php @@ -57,7 +57,7 @@ class AutonameTest extends TestCase { // public function testAutonameMaxLength() { // $autoname2=autoname(PHP_INT_MAX); - // $this->assertEquals(PHP_INT_MAX, count($autoname2)); + // $this->assertEquals(PHP_INT_MAX, strlen($autoname2)); // } /** @@ -65,14 +65,14 @@ class AutonameTest extends TestCase { */ public function testAutonameLength1() { $autoname1=autoname(1); - $this->assertEquals(1, count($autoname1)); + $this->assertEquals(1, strlen($autoname1)); $autoname2=autoname(1); - $this->assertEquals(1, count($autoname2)); + $this->assertEquals(1, strlen($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 +} |