]> git.mxchange.org Git - friendica.git/commitdiff
fix autonamenegativelength test
authorfriendica <info@friendica.com>
Sat, 7 Apr 2012 08:20:38 +0000 (01:20 -0700)
committerfriendica <info@friendica.com>
Sat, 7 Apr 2012 08:20:38 +0000 (01:20 -0700)
tests/autoname_test.php

index 2987c83869611ee2e9c6d39e27e8177ba9e88f65..c83e4a47112408c45c3b780c108a3a5c84c652e9 100644 (file)
@@ -50,7 +50,7 @@ class AutonameTest extends PHPUnit_Framework_TestCase {
         */\r
        public function testAutonameNegativeLength() {\r
                $autoname1=autoname(-23);\r
-               $this->assertEquals(0, count($autoname1));\r
+               $this->assertEquals(0, strlen($autoname1));\r
        }\r
        \r
        //      public function testAutonameMaxLength() {\r