From 063654373d4dd560c8cc4f5ca9b9e74fc06332fd Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Sat, 25 Nov 2017 19:01:53 +0100 Subject: Fix a PHP error in a unit test for PHP7.2. --- tests/unit/AutonameTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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 +} -- cgit v1.2.3