Esempio n. 1
0
 /**
  * @dataProvider addressDataProvider
  */
 public function testParse($expected, $address)
 {
     $this->assertEquals($expected, AddressParser::parse($address));
 }
Esempio n. 2
0
 protected function addAddress(\Swift_Message $email, $type, $address)
 {
     $method = 'add' . $type;
     $parsed = AddressParser::parse($address);
     $email->{$method}($parsed['address'], $parsed['personal']);
 }