Skip to content

Commit c69e5b9

Browse files
authored
Merge pull request #181 from sportdude/develop
Fixed SMS separator
2 parents 9ded7e5 + 7d06ca4 commit c69e5b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DataTypes/SMS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SMS implements DataTypeInterface
1616
*
1717
* @var string
1818
*/
19-
protected $separator = ':';
19+
protected $separator = '&body=';
2020

2121
/**
2222
* The phone number.

tests/DataTypes/SMSTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function test_it_generate_a_proper_format_with_a_message()
2323
{
2424
$this->sms->create([null, 'foo']);
2525

26-
$properFormat = 'sms::foo';
26+
$properFormat = 'sms:&body=foo';
2727

2828
$this->assertEquals($properFormat, strval($this->sms));
2929
}
@@ -32,7 +32,7 @@ public function test_it_generates_a_proper_format_with_a_phone_number_and_messag
3232
{
3333
$this->sms->create(['555-555-5555', 'foo']);
3434

35-
$properFormat = 'sms:555-555-5555:foo';
35+
$properFormat = 'sms:555-555-5555&body=foo';
3636

3737
$this->assertEquals($properFormat, strval($this->sms));
3838
}

0 commit comments

Comments
 (0)