From 3a1c78bd75213e5ed3ad5f5ed4a1349fcf7ce4d5 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 7 Apr 2012 01:04:45 -0700 Subject: some work on tests --- tests/autoname_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/autoname_test.php') diff --git a/tests/autoname_test.php b/tests/autoname_test.php index 9dae920ca..2987c8386 100644 --- a/tests/autoname_test.php +++ b/tests/autoname_test.php @@ -40,7 +40,7 @@ class AutonameTest extends PHPUnit_Framework_TestCase { */ public function testAutonameNoLength() { $autoname1=autoname(0); - $this->assertEquals(0, count($autoname1)); + $this->assertEquals(0, strlen($autoname1)); } /** -- cgit v1.2.3 From f30146b521bf079e2651484e0e63f9596d6a3dd6 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 7 Apr 2012 01:20:38 -0700 Subject: fix autonamenegativelength test --- tests/autoname_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/autoname_test.php') diff --git a/tests/autoname_test.php b/tests/autoname_test.php index 2987c8386..c83e4a471 100644 --- a/tests/autoname_test.php +++ b/tests/autoname_test.php @@ -50,7 +50,7 @@ class AutonameTest extends PHPUnit_Framework_TestCase { */ public function testAutonameNegativeLength() { $autoname1=autoname(-23); - $this->assertEquals(0, count($autoname1)); + $this->assertEquals(0, strlen($autoname1)); } // public function testAutonameMaxLength() { -- cgit v1.2.3