| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 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 | } |
||
| 38 |