@@ -39,7 +39,7 @@ public function testSMSWithEmptyRecipient()
3939 public function testSingleSMSSending ()
4040 {
4141 $ response = $ this ->client ->send ([
42- 'to ' => [ Fixtures::$ phoneNumber] ,
42+ 'to ' => Fixtures::$ phoneNumber ,
4343 'message ' => 'Testing SMS... '
4444 ]);
4545
@@ -56,6 +56,36 @@ public function testMultipleSMSSending()
5656 $ this ->assertObjectHasAttribute ('SMSMessageData ' , $ response ['data ' ]);
5757 }
5858
59+ public function testHeavySingleSMSSending ()
60+ {
61+ $ count = 100000 ;
62+ $ phoneNumbers = array ();
63+ for ($ i =0 ;$ i <$ count ;$ i ++) {
64+ array_push ($ phoneNumbers , "+254724 " .($ count + $ i ));
65+ };
66+ $ response = $ this ->client ->send ([
67+ 'to ' => $ phoneNumbers ,
68+ 'message ' => "Testing send a message to $ count numbers... " ,
69+ 'enqueue ' => true
70+ ]);
71+
72+ $ this ->assertObjectHasAttribute ('SMSMessageData ' , $ response ['data ' ]);
73+ }
74+
75+ public function testLightMultipleSMSSending ()
76+ {
77+ $ count = 10 ;
78+ for ($ i =0 ;$ i <$ count ;$ i ++) {
79+ $ num = "+254724 " .($ count + $ i );
80+ $ response = $ this ->client ->send ([
81+ 'to ' => $ num ,
82+ 'message ' => "Testing send a message to $ count numbers... " ,
83+ 'enqueue ' => true
84+ ]);
85+ };
86+ $ this ->assertObjectHasAttribute ('SMSMessageData ' , $ response ['data ' ]);
87+ }
88+
5989 public function testSMSSendingWithShortcode ()
6090 {
6191 $ response = $ this ->client ->send ([
0 commit comments