summaryrefslogtreecommitdiffstats
path: root/test/unit/MockClient.php
diff options
context:
space:
mode:
authorElmer Thomas <elmer@ThinkingSerious.com>2016-09-13 09:26:57 -0700
committerGitHub <noreply@github.com>2016-09-13 09:26:57 -0700
commit55ffd690f9309e0d3331bf9e2daa4ac2eac4ab94 (patch)
tree9a94aec7e6879e6e9ffbb448782277bf4e75f582 /test/unit/MockClient.php
parent23193453f681d77adf3f4ac6981e62e26c698537 (diff)
parente5de48e78b1d2d8421562a5a424a170813c0e69c (diff)
downloadphp-http-client-3.2.0.zip
php-http-client-3.2.0.tar.gz
php-http-client-3.2.0.tar.bz2
Merge pull request #6 from misantron/refactoringv3.2.0
Library refactoring around PSR-2 / PSR-4 code standards
Diffstat (limited to 'test/unit/MockClient.php')
-rw-r--r--test/unit/MockClient.php20
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