aboutsummaryrefslogtreecommitdiffstats
path: root/tests/avatar/manager_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-11-13 18:27:40 +0100
committerMarc Alexander <admin@m-a-styles.de>2013-11-13 18:27:40 +0100
commit13a4ceedb18ba938d3cd18e2f68707385bc9283a (patch)
treef787d2b82cd103171f72f7430e14b8bec150c258 /tests/avatar/manager_test.php
parent0ec644532d437e2d915185a5a63424d231d49433 (diff)
downloadforums-13a4ceedb18ba938d3cd18e2f68707385bc9283a.tar
forums-13a4ceedb18ba938d3cd18e2f68707385bc9283a.tar.gz
forums-13a4ceedb18ba938d3cd18e2f68707385bc9283a.tar.bz2
forums-13a4ceedb18ba938d3cd18e2f68707385bc9283a.tar.xz
forums-13a4ceedb18ba938d3cd18e2f68707385bc9283a.zip
[ticket/11525] Use foreach instead of array_walk in method clean_row()
This approach is cleaner and probably even faster the previous ways that included using array_walk() or array_map() and other helper functions and methods. PHPBB3-11525
Diffstat (limited to 'tests/avatar/manager_test.php')
-rw-r--r--tests/avatar/manager_test.php50
1 files changed, 13 insertions, 37 deletions
diff --git a/tests/avatar/manager_test.php b/tests/avatar/manager_test.php
index e9f622bfde..f29f7aee95 100644
--- a/tests/avatar/manager_test.php
+++ b/tests/avatar/manager_test.php
@@ -152,31 +152,20 @@ class phpbb_avatar_manager_test extends PHPUnit_Framework_TestCase
return array(
array(
array(
- 'user_avatar' => '',
- 'user_avatar_type' => '',
- 'user_avatar_width' => '',
+ 'user_avatar' => '',
+ 'user_avatar_type' => '',
+ 'user_avatar_width' => '',
'user_avatar_height' => '',
+ 'group_avatar' => '',
),
array(
- 'avatar' => '',
- 'avatar_type' => '',
- 'avatar_width' => '',
- 'avatar_height' => '',
- ),
- ),
- array(
- array(
- 'group_avatar' => '',
- 'group_avatar_type' => '',
- 'group_avatar_width' => '',
- 'group_avatar_height' => '',
- ),
- array(
- 'avatar' => '',
- 'avatar_type' => '',
- 'avatar_width' => '',
- 'avatar_height' => '',
+ 'user_avatar' => '',
+ 'user_avatar_type' => '',
+ 'user_avatar_width' => '',
+ 'user_avatar_height' => '',
+ 'group_avatar' => '',
),
+ 'foobar',
),
array(
array(),
@@ -189,27 +178,14 @@ class phpbb_avatar_manager_test extends PHPUnit_Framework_TestCase
),
array(
array(
- 'foobar_avatar' => '',
- 'foobar_avatar_type' => '',
- 'foobar_avatar_width' => '',
- 'foobar_avatar_height' => '',
- ),
- array(
- 'foobar_avatar' => '',
- 'foobar_avatar_type' => '',
- 'foobar_avatar_width' => '',
- 'foobar_avatar_height' => '',
- ),
- ),
- array(
- array(
'user_avatar' => '',
'user_id' => 5,
'group_id' => 4,
),
array(
- 'avatar' => '',
- 'id' => 4,
+ 'user_avatar' => '',
+ 'user_id' => 5,
+ 'group_id' => 4,
),
),
array(