]> git.mxchange.org Git - friendica.git/commitdiff
use strlen instead of count as above (php7.2 fails)
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 23 Apr 2018 07:35:12 +0000 (09:35 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 23 Apr 2018 07:35:12 +0000 (09:35 +0200)
tests/TextTest.php

index 5baaa17ac28d59b92241db8fb35ef0521c279735..5b2b84bd74885a3cb0591a5d942e52f00990ad0f 100644 (file)
@@ -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));