diff options
author | misantron <misantron@gmail.com> | 2016-07-09 01:06:33 +0300 |
---|---|---|
committer | misantron <misantron@gmail.com> | 2016-07-09 01:06:33 +0300 |
commit | 5af53adbcadf57f3a154e7ae8d8a50b64c414390 (patch) | |
tree | 4448d3d1b4fb1819b62a84017f98f1a1561308d2 /test/unit/MockClient.php | |
parent | 1c766087ca9e180c37000534c97b43fc8c1d66ad (diff) | |
download | php-http-client-5af53adbcadf57f3a154e7ae8d8a50b64c414390.zip php-http-client-5af53adbcadf57f3a154e7ae8d8a50b64c414390.tar.gz php-http-client-5af53adbcadf57f3a154e7ae8d8a50b64c414390.tar.bz2 |
Bump composer PHP version to 5.4, library refactoring to PSR-2 and PSR-4 standards
Diffstat (limited to 'test/unit/MockClient.php')
-rw-r--r-- | test/unit/MockClient.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/unit/MockClient.php b/test/unit/MockClient.php new file mode 100644 index 0000000..0254e5e --- /dev/null +++ b/test/unit/MockClient.php @@ -0,0 +1,20 @@ +<?php + +namespace SendGrid\Test; + +use SendGrid\Client; + +class MockClient extends Client +{ + protected $requestBody; + protected $requestHeaders; + protected $url; + + public function makeRequest($method, $url, $requestBody = null, $requestHeaders = null) + { + $this->requestBody = $requestBody; + $this->requestHeaders = $requestHeaders; + $this->url = $url; + return $this; + } +}
\ No newline at end of file |