use strlen instead of count as above (php7.2 fails)
This commit is contained in:
parent
61a380975b
commit
f1535c0f01
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
namespace Friendica\Test;
|
namespace Friendica\Test;
|
||||||
|
|
||||||
//use PHPUnit_Framework_TestCase;
|
|
||||||
// backward compatibility
|
// backward compatibility
|
||||||
if (!class_exists('\PHPUnit\Framework\TestCase')) {
|
if (!class_exists('\PHPUnit\Framework\TestCase')) {
|
||||||
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
|
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
|
||||||
|
@ -65,7 +64,7 @@ class TextTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testAutonameLength1()
|
public function testAutonameLength1()
|
||||||
{
|
{
|
||||||
$autoname1=autoname(1);
|
$autoname1=autoname(1);
|
||||||
$this->assertEquals(1, count($autoname1));
|
$this->assertEquals(1, strlen($autoname1));
|
||||||
|
|
||||||
$autoname2=autoname(1);
|
$autoname2=autoname(1);
|
||||||
$this->assertEquals(1, count($autoname2));
|
$this->assertEquals(1, count($autoname2));
|
||||||
|
|
Loading…
Reference in a new issue