X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=tests%2Fget_tags_test.php;fp=tests%2Fget_tags_test.php;h=79dcb36a7f4c1800b6e84b89fbe73eb63712795a;hb=7b352f3f74b045690cdeae507b609f7a9cc8db03;hp=2d49eac24a434bb3ca3a4a61948b2fe78be514bd;hpb=9c2c4839968169a191084d6d2b0d629d82430e67;p=friendica.git diff --git a/tests/get_tags_test.php b/tests/get_tags_test.php index 2d49eac24a..79dcb36a7f 100644 --- a/tests/get_tags_test.php +++ b/tests/get_tags_test.php @@ -44,23 +44,23 @@ function q($sql) { $args=func_get_args(); //last parameter is always (in this test) uid, so, it should be 11 - if ($args[count($args)-1]!=11) { + if($args[count($args)-1]!=11) { return; } - if (3==count($args)) { + if(3==count($args)) { //first call in handle_body, id only - if ($result[0]['id']==$args[1]) { + if($result[0]['id']==$args[1]) { return $result; } //second call in handle_body, name - if ($result[0]['name']===$args[1]) { + if($result[0]['name']===$args[1]) { return $result; } } //third call in handle_body, nick or attag - if ($result[0]['nick']===$args[2] || $result[0]['attag']===$args[1]) { + if($result[0]['nick']===$args[2] || $result[0]['attag']===$args[1]) { return $result; } } @@ -108,7 +108,7 @@ class GetTagsTest extends PHPUnit_Framework_TestCase { $inform=''; $str_tags=''; - foreach ($tags as $tag) { + foreach($tags as $tag) { handle_tag($this->a, $text, $inform, $str_tags, 11, $tag); } @@ -197,7 +197,7 @@ class GetTagsTest extends PHPUnit_Framework_TestCase { $inform=''; $str_tags=''; - foreach ($tags as $tag) { + foreach($tags as $tag) { handle_tag($this->a, $text, $inform, $str_tags, 11, $tag); } @@ -257,7 +257,7 @@ class GetTagsTest extends PHPUnit_Framework_TestCase { $inform=''; $str_tags=''; - foreach ($tags as $tag) { + foreach($tags as $tag) { handle_tag($this->a, $text, $inform, $str_tags, 11, $tag); }