aboutsummaryrefslogtreecommitdiffstats
path: root/tests/autoname_test.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-04-07 14:47:02 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-04-07 14:47:02 -0400
commitcee36087470acbc4aeff121ab91cd337737dcc67 (patch)
treea093294b2b3ee2f99c0dc5b95d5844bf9817eafa /tests/autoname_test.php
parentbc69a957dc875b699240827cb4af2691f8a8fcd6 (diff)
parentf931d5c918fa3146afa851a4f32c90a35ee1c85b (diff)
downloadvolse-hubzilla-cee36087470acbc4aeff121ab91cd337737dcc67.tar.gz
volse-hubzilla-cee36087470acbc4aeff121ab91cd337737dcc67.tar.bz2
volse-hubzilla-cee36087470acbc4aeff121ab91cd337737dcc67.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: diabook-themes: small fix changelog 1.014 : image-rezise via jquery-plugin in stream comments under uploaded pictues add Diabook's version-number in head-section ignore utf8 offset error for unit tests had arg order backwards try assertContains tag tests cont. fix autonamenegativelength test some work on tests * master:
Diffstat (limited to 'tests/autoname_test.php')
-rw-r--r--tests/autoname_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/autoname_test.php b/tests/autoname_test.php
index 9dae920ca..c83e4a471 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));
}
/**
@@ -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() {