use Symfony\Component\Notifier\Recipient\Recipient;
/**
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
*/
class RecipientTest extends TestCase
{ public function testCannotBeConstructedWithoutEmailAndWithoutPhone() { $this->
expectException(InvalidArgumentException::
class);
new Recipient('', ''
);
} /**
* @dataProvider provideValidEmailAndPhone
*/
public function testCanBeConstructed(string
$email, string
$phone) { $recipient =
new Recipient($email,
$phone);
$this->
assertSame($email,
$recipient->
getEmail());
$this->
assertSame($phone,
$recipient->
getPhone());
}