mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 12:36:02 +03:00
Fix php 5.3 compat
This commit is contained in:
parent
bdeadc1a01
commit
c203558234
@ -121,28 +121,28 @@ class BatchMessageTest extends \Mailgun\Tests\MailgunTestCase{
|
||||
$this->setExpectedException("\\Mailgun\\Messages\\Exceptions\\MissingRequiredMIMEParameters");
|
||||
|
||||
$message = $this->client->BatchMessage($this->sampleDomain);
|
||||
$message->sendMessage([1,2,3]);
|
||||
$message->sendMessage(array(1,2,3));
|
||||
}
|
||||
public function testInvalidMissingRequiredMIMEParametersExceptionGetsFlungNoTo()
|
||||
{
|
||||
$this->setExpectedException("\\Mailgun\\Messages\\Exceptions\\MissingRequiredMIMEParameters");
|
||||
|
||||
$message = $this->client->BatchMessage($this->sampleDomain);
|
||||
$message->sendMessage(["from" => 1, 2,3]);
|
||||
$message->sendMessage(array("from" => 1, 2,3));
|
||||
}
|
||||
public function testInvalidMissingRequiredMIMEParametersExceptionGetsFlungNoSubject()
|
||||
{
|
||||
$this->setExpectedException("\\Mailgun\\Messages\\Exceptions\\MissingRequiredMIMEParameters");
|
||||
|
||||
$message = $this->client->BatchMessage($this->sampleDomain);
|
||||
$message->sendMessage(["from" => 1, "to" => 2,3]);
|
||||
$message->sendMessage(array("from" => 1, "to" => 2,3));
|
||||
}
|
||||
public function testInvalidMissingRequiredMIMEParametersExceptionGetsFlungNoTextOrHtml()
|
||||
{
|
||||
$this->setExpectedException("\\Mailgun\\Messages\\Exceptions\\MissingRequiredMIMEParameters");
|
||||
|
||||
$message = $this->client->BatchMessage($this->sampleDomain);
|
||||
$message->sendMessage(["from" => 1,"to" => 2,"subject" => 3]);
|
||||
$message->sendMessage(array("from" => 1,"to" => 2,"subject" => 3));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user