X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FTextTest.php;h=ac1b7d7757b580eeccc38fa160b4cd983c4dcc1d;hb=9a6a3bf1c121724984a596b6af274fb4656cad02;hp=3a15b97665840d378b85b6b4846d79aabaf39edd;hpb=88353ce56f0e5da6352af2d999a58bd0c9b375f7;p=friendica.git diff --git a/tests/TextTest.php b/tests/TextTest.php index 3a15b97665..ac1b7d7757 100644 --- a/tests/TextTest.php +++ b/tests/TextTest.php @@ -5,12 +5,12 @@ namespace Friendica\Test; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; /** * Tests for text functions. */ -class TextTest extends PHPUnit_Framework_TestCase +class TextTest extends TestCase { /** @@ -61,10 +61,10 @@ 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)); + $this->assertEquals(1, strlen($autoname2)); } /**