| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 9 | public function testSanitize() |
||
| 10 | { |
||
| 11 | $expected = ['[email protected]','[email protected]', '[email protected]']; |
||
| 12 | $emailString = ' [email protected], [email protected]; [email protected] ,'; |
||
| 13 | $emailArray = [ |
||
| 14 | ' [email protected]', |
||
| 15 | ' [email protected] ', |
||
| 16 | '[email protected] ' |
||
| 17 | ]; |
||
| 18 | $this->assertEquals($expected, RecipientsHelper::sanitize($emailString)); |
||
| 19 | $this->assertEquals($expected, RecipientsHelper::sanitize($emailArray)); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |