aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-11-25 19:01:53 +0100
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-11-25 21:49:51 +0100
commit063654373d4dd560c8cc4f5ca9b9e74fc06332fd (patch)
tree4f4b9cd74acb4b84f232ead92896bcb10fe73789 /tests/unit
parentee929752e345f4d2fb02503fd589f9ad834a745c (diff)
downloadvolse-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/unit')
-rw-r--r--tests/unit/AutonameTest.php8
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
+}