diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-11-25 19:01:53 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-11-25 21:49:51 +0100 |
commit | 063654373d4dd560c8cc4f5ca9b9e74fc06332fd (patch) | |
tree | 4f4b9cd74acb4b84f232ead92896bcb10fe73789 /tests | |
parent | ee929752e345f4d2fb02503fd589f9ad834a745c (diff) | |
download | volse-hubzilla-063654373d4dd560c8cc4f5ca9b9e74fc06332fd.tar.gz volse-hubzilla-063654373d4dd560c8cc4f5ca9b9e74fc06332fd.tar.bz2 volse-hubzilla-063654373d4dd560c8cc4f5ca9b9e74fc06332fd.zip |
Fix a PHP error in a unit test for PHP7.2.
Diffstat (limited to 'tests')
-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 +} |