mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-26 06:46:08 +03:00
502fac0b37
Tried to throw MissingRequiredMIMEParameters which didn't exist in current namespace or added via use. Connection exceptions was included by MissingRequiredMIMEParameters is in messages exceptions so changed the added exception name to messages. Exception message constant didn't exist. So added it.
17 lines
419 B
PHP
17 lines
419 B
PHP
<?PHP
|
|
namespace Mailgun\Tests\Lists;
|
|
|
|
use Mailgun\Mailgun;
|
|
|
|
class MailgunTest extends \Mailgun\Tests\MailgunTestCase{
|
|
|
|
public function testSendMessageMissingRequiredMIMEParametersExceptionGetsFlung()
|
|
{
|
|
$this->setExpectedException("\\Mailgun\\Messages\\Exceptions\\MissingRequiredMIMEParameters");
|
|
|
|
$client = new Mailgun();
|
|
$client->sendMessage("test.mailgun.com", "etss", 1);
|
|
}
|
|
}
|
|
|
|
?>
|