aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/UtilsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UtilsTest.php')
-rw-r--r--tests/UtilsTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php
index c885f552..b8f608b9 100644
--- a/tests/UtilsTest.php
+++ b/tests/UtilsTest.php
@@ -282,4 +282,24 @@ class UtilsTest extends PHPUnit_Framework_TestCase
282 $this->assertEquals('', normalize_spaces('')); 282 $this->assertEquals('', normalize_spaces(''));
283 $this->assertEquals(null, normalize_spaces(null)); 283 $this->assertEquals(null, normalize_spaces(null));
284 } 284 }
285
286 /**
287 * Test arrays_combine
288 */
289 public function testArraysCombination()
290 {
291 $arr = [['ab', 'cd'], ['ef', 'gh'], ['ij', 'kl'], ['m']];
292 $expected = [
293 'abefijm',
294 'cdefijm',
295 'abghijm',
296 'cdghijm',
297 'abefklm',
298 'cdefklm',
299 'abghklm',
300 'cdghklm',
301 ];
302 $this->assertEquals($expected, arrays_combination($arr));
303 }
304
285} 305}