From f1535c0f01ad3bd86c29126984b37f8a9d465495 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Mon, 23 Apr 2018 09:35:12 +0200 Subject: [PATCH] use strlen instead of count as above (php7.2 fails) --- tests/TextTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/TextTest.php b/tests/TextTest.php index 5baaa17ac2..5b2b84bd74 100644 --- a/tests/TextTest.php +++ b/tests/TextTest.php @@ -5,7 +5,6 @@ namespace Friendica\Test; -//use PHPUnit_Framework_TestCase; // backward compatibility if (!class_exists('\PHPUnit\Framework\TestCase')) { class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); @@ -65,7 +64,7 @@ class TextTest extends \PHPUnit\Framework\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));