summaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-21 16:40:38 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 13:34:41 +0100
commitc007ca624f4a95e1a491221d425fcb2fa6e5589a (patch)
treeb60aa133b438eb116ac3579283aa8a7967efd12b /tests/lib/AppFramework/Http
parente0f32814e33f9ebb8c42744611048cbfac1eb588 (diff)
downloadnextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.tar.gz
nextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.zip
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/AppFramework/Http')
-rw-r--r--tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php2
-rw-r--r--tests/lib/AppFramework/Http/DataResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/DispatcherTest.php2
-rw-r--r--tests/lib/AppFramework/Http/DownloadResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php2
-rw-r--r--tests/lib/AppFramework/Http/EmptyFeaturePolicyTest.php2
-rw-r--r--tests/lib/AppFramework/Http/FeaturePolicyTest.php2
-rw-r--r--tests/lib/AppFramework/Http/FileDisplayResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/HttpTest.php2
-rw-r--r--tests/lib/AppFramework/Http/JSONResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/RedirectResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/RequestTest.php4
-rw-r--r--tests/lib/AppFramework/Http/ResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/StreamResponseTest.php2
-rw-r--r--tests/lib/AppFramework/Http/TemplateResponseTest.php2
15 files changed, 16 insertions, 16 deletions
diff --git a/tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php b/tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
index b6163e90386..1f687b1f7cc 100644
--- a/tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
+++ b/tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
@@ -21,7 +21,7 @@ class ContentSecurityPolicyTest extends \Test\TestCase {
/** @var ContentSecurityPolicy */
private $contentSecurityPolicy;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->contentSecurityPolicy = new ContentSecurityPolicy();
}
diff --git a/tests/lib/AppFramework/Http/DataResponseTest.php b/tests/lib/AppFramework/Http/DataResponseTest.php
index 6f81e0d56b4..b629c6d385e 100644
--- a/tests/lib/AppFramework/Http/DataResponseTest.php
+++ b/tests/lib/AppFramework/Http/DataResponseTest.php
@@ -34,7 +34,7 @@ class DataResponseTest extends \Test\TestCase {
*/
private $response;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->response = new DataResponse();
}
diff --git a/tests/lib/AppFramework/Http/DispatcherTest.php b/tests/lib/AppFramework/Http/DispatcherTest.php
index 404c94abdbd..1c4dc067b5d 100644
--- a/tests/lib/AppFramework/Http/DispatcherTest.php
+++ b/tests/lib/AppFramework/Http/DispatcherTest.php
@@ -87,7 +87,7 @@ class DispatcherTest extends \Test\TestCase {
private $http;
private $reflector;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->controllerMethod = 'test';
diff --git a/tests/lib/AppFramework/Http/DownloadResponseTest.php b/tests/lib/AppFramework/Http/DownloadResponseTest.php
index 97c7ab75ed9..5f816eaeb76 100644
--- a/tests/lib/AppFramework/Http/DownloadResponseTest.php
+++ b/tests/lib/AppFramework/Http/DownloadResponseTest.php
@@ -38,7 +38,7 @@ class DownloadResponseTest extends \Test\TestCase {
*/
protected $response;
- protected function setUp(){
+ protected function setUp(): void {
parent::setUp();
$this->response = new ChildDownloadResponse('file', 'content');
}
diff --git a/tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php b/tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
index d9bdfccf60b..86de705a80c 100644
--- a/tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
+++ b/tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
@@ -21,7 +21,7 @@ class EmptyContentSecurityPolicyTest extends \Test\TestCase {
/** @var EmptyContentSecurityPolicy */
private $contentSecurityPolicy;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->contentSecurityPolicy = new EmptyContentSecurityPolicy();
}
diff --git a/tests/lib/AppFramework/Http/EmptyFeaturePolicyTest.php b/tests/lib/AppFramework/Http/EmptyFeaturePolicyTest.php
index 9150503c632..0321d700cd7 100644
--- a/tests/lib/AppFramework/Http/EmptyFeaturePolicyTest.php
+++ b/tests/lib/AppFramework/Http/EmptyFeaturePolicyTest.php
@@ -31,7 +31,7 @@ class EmptyFeaturePolicyTest extends \Test\TestCase {
/** @var EmptyFeaturePolicy */
private $policy;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->policy = new EmptyFeaturePolicy();
}
diff --git a/tests/lib/AppFramework/Http/FeaturePolicyTest.php b/tests/lib/AppFramework/Http/FeaturePolicyTest.php
index 7c2cc3fa6d5..45d7ff0c558 100644
--- a/tests/lib/AppFramework/Http/FeaturePolicyTest.php
+++ b/tests/lib/AppFramework/Http/FeaturePolicyTest.php
@@ -31,7 +31,7 @@ class FeaturePolicyTest extends \Test\TestCase {
/** @var EmptyFeaturePolicy */
private $policy;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->policy = new FeaturePolicy();
}
diff --git a/tests/lib/AppFramework/Http/FileDisplayResponseTest.php b/tests/lib/AppFramework/Http/FileDisplayResponseTest.php
index 2c91289a5c9..d7c8b384bf5 100644
--- a/tests/lib/AppFramework/Http/FileDisplayResponseTest.php
+++ b/tests/lib/AppFramework/Http/FileDisplayResponseTest.php
@@ -34,7 +34,7 @@ class FileDisplayResponseTest extends \Test\TestCase {
/** @var FileDisplayResponse */
private $response;
- public function setup() {
+ public function setUp(): void {
$this->file = $this->getMockBuilder('OCP\Files\File')
->getMock();
diff --git a/tests/lib/AppFramework/Http/HttpTest.php b/tests/lib/AppFramework/Http/HttpTest.php
index 0a13e1e11e5..79c03ce1ab0 100644
--- a/tests/lib/AppFramework/Http/HttpTest.php
+++ b/tests/lib/AppFramework/Http/HttpTest.php
@@ -34,7 +34,7 @@ class HttpTest extends \Test\TestCase {
*/
private $http;
- protected function setUp(){
+ protected function setUp(): void {
parent::setUp();
$this->server = array();
diff --git a/tests/lib/AppFramework/Http/JSONResponseTest.php b/tests/lib/AppFramework/Http/JSONResponseTest.php
index a74bd67d1f0..4981313c32a 100644
--- a/tests/lib/AppFramework/Http/JSONResponseTest.php
+++ b/tests/lib/AppFramework/Http/JSONResponseTest.php
@@ -36,7 +36,7 @@ class JSONResponseTest extends \Test\TestCase {
*/
private $json;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->json = new JSONResponse();
}
diff --git a/tests/lib/AppFramework/Http/RedirectResponseTest.php b/tests/lib/AppFramework/Http/RedirectResponseTest.php
index 218f748a88b..fc24f323c6a 100644
--- a/tests/lib/AppFramework/Http/RedirectResponseTest.php
+++ b/tests/lib/AppFramework/Http/RedirectResponseTest.php
@@ -33,7 +33,7 @@ class RedirectResponseTest extends \Test\TestCase {
*/
protected $response;
- protected function setUp(){
+ protected function setUp(): void {
parent::setUp();
$this->response = new RedirectResponse('/url');
}
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index 2ad660405f3..7ca09cf33da 100644
--- a/tests/lib/AppFramework/Http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -31,7 +31,7 @@ class RequestTest extends \Test\TestCase {
/** @var CsrfTokenManager */
protected $csrfTokenManager;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
if (in_array('fakeinput', stream_get_wrappers())) {
@@ -45,7 +45,7 @@ class RequestTest extends \Test\TestCase {
->disableOriginalConstructor()->getMock();
}
- protected function tearDown() {
+ protected function tearDown(): void {
stream_wrapper_unregister('fakeinput');
parent::tearDown();
}
diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php
index 64b9566f8e6..3d76d24496d 100644
--- a/tests/lib/AppFramework/Http/ResponseTest.php
+++ b/tests/lib/AppFramework/Http/ResponseTest.php
@@ -35,7 +35,7 @@ class ResponseTest extends \Test\TestCase {
*/
private $childResponse;
- protected function setUp(){
+ protected function setUp(): void {
parent::setUp();
$this->childResponse = new Response();
}
diff --git a/tests/lib/AppFramework/Http/StreamResponseTest.php b/tests/lib/AppFramework/Http/StreamResponseTest.php
index ef9a37aa81b..ef7132013b6 100644
--- a/tests/lib/AppFramework/Http/StreamResponseTest.php
+++ b/tests/lib/AppFramework/Http/StreamResponseTest.php
@@ -33,7 +33,7 @@ class StreamResponseTest extends \Test\TestCase {
/** @var IOutput */
private $output;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->output = $this->getMockBuilder('OCP\\AppFramework\\Http\\IOutput')
->disableOriginalConstructor()
diff --git a/tests/lib/AppFramework/Http/TemplateResponseTest.php b/tests/lib/AppFramework/Http/TemplateResponseTest.php
index b5586222257..6672b4d0c1e 100644
--- a/tests/lib/AppFramework/Http/TemplateResponseTest.php
+++ b/tests/lib/AppFramework/Http/TemplateResponseTest.php
@@ -33,7 +33,7 @@ class TemplateResponseTest extends \Test\TestCase {
*/
private $tpl;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->tpl = new TemplateResponse('app', 'home');