1
0
Fork 0

use strlen instead of count as above (php7.2 fails)

This commit is contained in:
Tobias Diekershoff 2018-04-23 09:35:12 +02:00
parent 61a380975b
commit f1535c0f01

View 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));