Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
7 additions
and
7 deletions.
-
+3
−3
src/Client.php
-
+1
−1
src/ClientException.php
-
+2
−2
src/RequestEvent.php
-
+1
−1
test/ClientTest.php
|
|
@@ -1,9 +1,9 @@ |
|
|
<?php declare(strict_types=1); |
|
|
namespace FreeMobile; |
|
|
|
|
|
use Psr\Http\Message\{UriInterface}; |
|
|
use Symfony\Component\EventDispatcher\{EventDispatcher}; |
|
|
use Symfony\Component\HttpClient\{Psr18Client}; |
|
|
use Psr\Http\Message\UriInterface; |
|
|
use Symfony\Component\EventDispatcher\EventDispatcher; |
|
|
use Symfony\Component\HttpClient\Psr18Client; |
|
|
|
|
|
/** Sends messages by SMS to a Free Mobile account. */ |
|
|
class Client extends EventDispatcher { |
|
|
|
|
@@ -1,7 +1,7 @@ |
|
|
<?php declare(strict_types=1); |
|
|
namespace FreeMobile; |
|
|
|
|
|
use Psr\Http\Message\{UriInterface}; |
|
|
use Psr\Http\Message\UriInterface; |
|
|
|
|
|
/** An exception caused by an error in a `Client` request. */ |
|
|
class ClientException extends \RuntimeException { |
|
|
|
|
@@ -1,8 +1,8 @@ |
|
|
<?php declare(strict_types=1); |
|
|
namespace FreeMobile; |
|
|
|
|
|
use Psr\Http\Message\{RequestInterface}; |
|
|
use Symfony\Contracts\EventDispatcher\{Event}; |
|
|
use Psr\Http\Message\RequestInterface; |
|
|
use Symfony\Contracts\EventDispatcher\Event; |
|
|
|
|
|
/** Represents the event parameter used for request events. */ |
|
|
class RequestEvent extends Event { |
|
|
|
|
@@ -1,7 +1,7 @@ |
|
|
<?php declare(strict_types=1); |
|
|
namespace FreeMobile; |
|
|
|
|
|
use Nyholm\Psr7\{Uri}; |
|
|
use Nyholm\Psr7\Uri; |
|
|
use PHPUnit\Framework\{Assert, TestCase}; |
|
|
use function PHPUnit\Framework\{assertThat, isInstanceOf, isNull, stringStartsWith}; |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.