mailgun-php/tests/Mock/Mailgun.php

25 lines
557 B
PHP
Raw Normal View History

<?php
2013-08-08 21:39:44 +04:00
/*
* Copyright (C) 2013-2016 Mailgun
*
* This software may be modified and distributed under the terms
2016-12-06 21:12:52 +03:00
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Tests\Mock;
2013-08-08 21:39:44 +04:00
use Mailgun\Mailgun as Base;
use Mailgun\Tests\Mock\Connection\TestBroker;
2013-08-08 21:39:44 +04:00
class Mailgun extends Base
2013-08-08 21:39:44 +04:00
{
2014-05-14 17:06:05 +04:00
protected $debug;
protected $restClient;
2016-07-24 14:42:47 +03:00
public function __construct($apiKey = null, $apiEndpoint = 'api.mailgun.net', $apiVersion = 'v3')
2014-05-14 17:06:05 +04:00
{
$this->restClient = new TestBroker($apiKey, $apiEndpoint, $apiVersion);
}
}