Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
13 | class TransformMethodsTraitTest extends AbstractTest |
||
14 | { |
||
15 | /** |
||
16 | * @dataProvider collectionClassProvider |
||
17 | */ |
||
18 | public function testImplode($collection) |
||
19 | { |
||
20 | $data = new $collection([['name' => 'taylor', 'email' => 'foo'], ['name' => 'dayle', 'email' => 'bar']]); |
||
21 | $this->assertSame('foobar', $data->implode('email')); |
||
22 | $this->assertSame('foo,bar', $data->implode('email', ',')); |
||
23 | |||
24 | $data = new $collection(['taylor', 'dayle']); |
||
25 | $this->assertSame('taylordayle', $data->implode('')); |
||
26 | $this->assertSame('taylor,dayle', $data->implode(',')); |
||
27 | } |
||
28 | |||
29 | public function test_transform() |
||
36 | } |
||
37 | } |
||
38 |