diff options
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r-- | tests/units/Base.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php index a90987ab..bc6518fb 100644 --- a/tests/units/Base.php +++ b/tests/units/Base.php @@ -53,7 +53,15 @@ class FakeHttpClient return json_encode($this->data, JSON_PRETTY_PRINT); } - public function post($url, array $data, array $headers = array()) + public function postJson($url, array $data, array $headers = array()) + { + $this->url = $url; + $this->data = $data; + $this->headers = $headers; + return true; + } + + public function postForm($url, array $data, array $headers = array()) { $this->url = $url; $this->data = $data; |