mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-27 07:16:10 +03:00
3af838f2c8
Created a Mocks directory to seperate mocks from classes. I moved Mailgun\Tests\MailGunTest to Mailgun\Test\Mocks\Mailgun. As it's not a test it's a mock. So shouldn't be suffixed with Test. I mocked Mailgun\Tests\Connection\TestBroker to Mailgun\Tests\Mocks\Connection\TestBroker as it's a mock and should be with other mocks.
19 lines
372 B
PHP
19 lines
372 B
PHP
<?PHP
|
|
|
|
namespace Mailgun\Tests\Mock;
|
|
|
|
use Mailgun\Mailgun as Base;
|
|
use Mailgun\Tests\Mock\Connection\TestBroker;
|
|
|
|
class Mailgun extends Base
|
|
{
|
|
protected $debug;
|
|
protected $restClient;
|
|
|
|
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v2"){
|
|
$this->restClient = new TestBroker($apiKey, $apiEndpoint, $apiVersion);
|
|
}
|
|
}
|
|
|
|
|
|
?>
|