summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/OAuth2/Request/TestRequest.php8
-rw-r--r--test/lib/OAuth2/Storage/Bootstrap.php2
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
+}