diff --git a/tests/TextTest.php b/tests/TextTest.php index 5baaa17ac..5b2b84bd7 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));