diff options
| author | Brent Shaffer <bshafs@gmail.com> | 2013-01-21 21:07:00 +0400 |
|---|---|---|
| committer | Brent Shaffer <bshafs@gmail.com> | 2013-01-21 21:07:00 +0400 |
| commit | 30be7a24c45b0268a7ed7b4038ae2e5e4eade47d (patch) | |
| tree | 7f066dbcf11b70479d8a728a06c141b544002c25 /test/lib | |
| parent | cbed0cb6330f1e1bad6d6acd291b01c6a869add9 (diff) | |
| parent | 6ea0ad23dde79426fd54206916b967c4b9af69d1 (diff) | |
| download | oauth2-server-php-0.3.tar.xz | |
Merge branch 'develop'v0.3
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/OAuth2/Request/TestRequest.php | 8 | ||||
| -rw-r--r-- | test/lib/OAuth2/Storage/Bootstrap.php | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/lib/OAuth2/Request/TestRequest.php b/test/lib/OAuth2/Request/TestRequest.php index 623d139..4772e28 100644 --- a/test/lib/OAuth2/Request/TestRequest.php +++ b/test/lib/OAuth2/Request/TestRequest.php @@ -43,4 +43,10 @@ class OAuth2_Request_TestRequest implements OAuth2_RequestInterface { $this->query = $query; } -}
\ No newline at end of file + + public function setPost(array $post) + { + $this->server['HTTP_METHOD'] = 'POST'; + $this->post = $post; + } +} diff --git a/test/lib/OAuth2/Storage/Bootstrap.php b/test/lib/OAuth2/Storage/Bootstrap.php index 4a214b3..354a508 100644 --- a/test/lib/OAuth2/Storage/Bootstrap.php +++ b/test/lib/OAuth2/Storage/Bootstrap.php @@ -91,4 +91,4 @@ class OAuth2_Storage_Bootstrap { return dirname(__FILE__).'/../../../config/test.sqlite'; } -}
\ No newline at end of file +} |
