Namshi\Notificator\Notification\Sms\SmsNotification::getRecipientNumber PHP Method

getRecipientNumber() public method

public getRecipientNumber ( )
    public function getRecipientNumber()
    {
        return $this->recipientAddress;
    }

Usage Example

Beispiel #1
0
 /**
  * @param  \Namshi\Notificator\Notification\Sms\SmsNotification $notification
  * @param  \Namshi\SMSCountry\Client $client
  */
 function it_handles_sms_notification($notification, $client)
 {
     $notification->getRecipientNumber()->willReturn('Number')->shouldBeCalled();
     $notification->getMessage()->willReturn('body')->shouldBeCalled();
     $this->handle($notification)->shouldBe(true);
     $client->sendSms('Number', 'body')->shouldBeCalled();
 }