summaryrefslogtreecommitdiffstats
path: root/test/unit/MockClient.php
diff options
context:
space:
mode:
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