| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function testAttachmentsGetAddedWhenConvertingToArray() |
||
| 16 | { |
||
| 17 | $comment = new Comment(); |
||
| 18 | $comment->setMessage('comment'); |
||
| 19 | $comment->addAttachment(__FILE__); |
||
| 20 | $comment->addAttachment(__FILE__); |
||
| 21 | $comment->addAttachment(__FILE__); |
||
| 22 | $comment->addAttachment(__FILE__); |
||
| 23 | |||
| 24 | $this->assertEquals(5, count($comment->toArray())); |
||
| 25 | } |
||
| 26 | |||
| 28 |