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