Skip to content

Commit f66f11d

Browse files
author
Oguzhan Uysal
committed
Add uncovered test
1 parent 72b3a13 commit f66f11d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ArrayTraitTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,17 @@ public function implodingMultiDimensionalArrayReturnsString()
4444

4545
$this->assertSame($expectedOutput, $this->testClass->recusiveImplode($arr, ','));
4646
}
47+
48+
/**
49+
* @test
50+
*/
51+
public function joinIsAliasingImplode()
52+
{
53+
$arr = [
54+
'testKey' => 'testValue',
55+
'testKey2' => 'testValue2'
56+
];
57+
58+
$this->assertSame(implode(',', $arr), $this->testClass->recursiveJoin($arr, ','));
59+
}
4760
}

0 commit comments

Comments
 (0)