public function testSmsMakePayloadWithAdditionalSettings() { $sender = new SMSSender("localhost", "APP001", "password"); $sender->setsourceAddress("77000"); $res = $sender->makePayload("hello", array("tel:94123123123")); $res = json_decode($res, true); $this->assertEquals("77000", $res["sourceAddress"]); $this->assertEquals($res["applicationId"], "APP001"); $this->assertEquals($res["password"], "password"); $this->assertEquals($res["message"], "hello"); $this->assertEquals($res["destinationAddresses"][0], "tel:94123123123"); }