From 439d41b194073285ab97be94253b3f4cb4395e43 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 18 Dec 2017 15:48:49 +0100 Subject: install smarty via composer and update other php libs --- .../oauth2-server-php/test/lib/OAuth2/Request/TestRequest.php | 7 ++++++- .../oauth2-server-php/test/lib/OAuth2/Storage/BaseTest.php | 4 +++- .../oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php | 0 3 files changed, 9 insertions(+), 2 deletions(-) mode change 100755 => 100644 vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/BaseTest.php mode change 100755 => 100644 vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php (limited to 'vendor/bshaffer/oauth2-server-php/test/lib/OAuth2') diff --git a/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Request/TestRequest.php b/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Request/TestRequest.php index 7bbce28a4..a916ff2a3 100644 --- a/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Request/TestRequest.php +++ b/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Request/TestRequest.php @@ -45,9 +45,14 @@ class TestRequest extends Request implements RequestInterface $this->query = $query; } + public function setMethod($method) + { + $this->server['REQUEST_METHOD'] = $method; + } + public function setPost(array $params) { - $this->server['REQUEST_METHOD'] = 'POST'; + $this->setMethod('POST'); $this->request = $params; } diff --git a/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/BaseTest.php b/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/BaseTest.php old mode 100755 new mode 100644 index f0b1274a2..e841d3ad2 --- a/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/BaseTest.php +++ b/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/BaseTest.php @@ -2,7 +2,9 @@ namespace OAuth2\Storage; -abstract class BaseTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +abstract class BaseTest extends TestCase { public function provideStorage() { diff --git a/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php b/vendor/bshaffer/oauth2-server-php/test/lib/OAuth2/Storage/Bootstrap.php old mode 100755 new mode 100644 -- cgit v1.2.3