Skip to content

Commit 6987d93

Browse files
committed
Rename func name: s/multicastMessage/multicast/
To keep consistency to other language SDK
1 parent 5823f0e commit 6987d93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/LINEBot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function pushMessage($to, MessageBuilder $messageBuilder)
133133
* @param MessageBuilder $messageBuilder Message builder to send.
134134
* @return Response
135135
*/
136-
public function multicastMessage(array $tos, MessageBuilder $messageBuilder)
136+
public function multicast(array $tos, MessageBuilder $messageBuilder)
137137
{
138138
return $this->httpClient->post($this->endpointBase . '/v2/bot/message/multicast', [
139139
'to' => $tos,

tests/LINEBot/MulticastMessageTest.php renamed to tests/LINEBot/MulticastTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use LINE\LINEBot\MessageBuilder\TextMessageBuilder;
2424
use LINE\Tests\LINEBot\Util\DummyHttpClient;
2525

26-
class MulticastMessageTest extends \PHPUnit_Framework_TestCase
26+
class MulticastTest extends \PHPUnit_Framework_TestCase
2727
{
2828
public function testMulticast()
2929
{
@@ -40,7 +40,7 @@ public function testMulticast()
4040
return ['status' => 200];
4141
};
4242
$bot = new LINEBot(new DummyHttpClient($this, $mock), ['channelSecret' => 'CHANNEL-SECRET']);
43-
$res = $bot->multicastMessage(
43+
$res = $bot->multicast(
4444
['DESTINATION1', 'DESTINATION2'],
4545
new TextMessageBuilder("test text")
4646
);

0 commit comments

Comments
 (0)