diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-28 20:47:14 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-28 20:47:14 -0500 |
commit | 39fe80a196ee626dda15b5b844dd1d05893f7646 (patch) | |
tree | 1c66efd9cb61c2f18c0d98d57b1589de6164101e /tests/unit | |
parent | 1035c453ea6468de13db8eb04fbb55d38347ff2a (diff) | |
parent | 029d155a07e4d2a0af82a19d3234cee50b57a085 (diff) | |
download | volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.tar.gz volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.tar.bz2 volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/AutonameTest.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/AutonameTest.php b/tests/unit/AutonameTest.php index 33e237bb9..566fe6149 100644 --- a/tests/unit/AutonameTest.php +++ b/tests/unit/AutonameTest.php @@ -62,13 +62,16 @@ class AutonameTest extends TestCase { /** * test with a length, that may be too short + * length is maximum - autoname can return something shorter. */ public function testAutonameLength1() { $autoname1=autoname(1); - $this->assertEquals(1, strlen($autoname1)); + $test = ((strlen($autoname1) < 2) ? 1 : 0); + $this->assertEquals(1, $test); $autoname2=autoname(1); - $this->assertEquals(1, strlen($autoname2)); + $test = ((strlen($autoname2) < 2) ? 1 : 0); + $this->assertEquals(1, $test); // The following test is problematic, with only 26 possibilities // generating the same thing twice happens often aka |