mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
parent
d2638a0457
commit
0eb15969b9
@ -16,7 +16,7 @@ use Mailgun\Exception\InvalidArgumentException;
|
|||||||
*
|
*
|
||||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||||
*/
|
*/
|
||||||
class Assert extends \Webmozart\Assert\Assert
|
final class Assert extends \Webmozart\Assert\Assert
|
||||||
{
|
{
|
||||||
protected static function reportInvalidArgument($message)
|
protected static function reportInvalidArgument($message)
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
*
|
*
|
||||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||||
*/
|
*/
|
||||||
class History implements Journal
|
final class History implements Journal
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ResponseInterface
|
* @var ResponseInterface
|
||||||
|
@ -22,7 +22,7 @@ use Mailgun\HttpClient\Plugin\History;
|
|||||||
*
|
*
|
||||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||||
*/
|
*/
|
||||||
class HttpClientConfigurator
|
final class HttpClientConfigurator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
|
@ -17,7 +17,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
*
|
*
|
||||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||||
*/
|
*/
|
||||||
class ArrayHydrator implements Hydrator
|
final class ArrayHydrator implements Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param ResponseInterface $response
|
* @param ResponseInterface $response
|
||||||
|
@ -18,7 +18,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
*
|
*
|
||||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||||
*/
|
*/
|
||||||
class ModelHydrator implements Hydrator
|
final class ModelHydrator implements Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param ResponseInterface $response
|
* @param ResponseInterface $response
|
||||||
|
@ -16,7 +16,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
*
|
*
|
||||||
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||||
*/
|
*/
|
||||||
class NoopHydrator implements Hydrator
|
final class NoopHydrator implements Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param ResponseInterface $response
|
* @param ResponseInterface $response
|
||||||
|
@ -23,7 +23,7 @@ class MessageBuilderHeaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Create the mocked mailgun client.
|
// Create the mocked mailgun client.
|
||||||
$mailgun = MockedMailgun::create($this, 'POST', 'domain/messages', [], $messageValidator);
|
$mailgun = MockedMailgun::createMock($this, 'POST', 'domain/messages', [], $messageValidator);
|
||||||
|
|
||||||
$builder = $mailgun->MessageBuilder();
|
$builder = $mailgun->MessageBuilder();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user