Skip to content

Commit 8d2ef6a

Browse files
committed
Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent fb644e7 commit 8d2ef6a

16 files changed

Lines changed: 23 additions & 23 deletions

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: php
22
php:
3-
- 7.1
43
- 7.2
54
- 7.3
5+
- 7.4
66
services:
77
- mysql
88
- postgresql

tests/AppInfo/ApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ApplicationTest extends TestCase {
6464
/** @var \OCP\AppFramework\IAppContainer */
6565
protected $container;
6666

67-
protected function setUp() {
67+
protected function setUp(): void {
6868
parent::setUp();
6969
$this->app = new Application();
7070
$this->container = $this->app->getContainer();

tests/ConsumerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ConsumerTest extends TestCase {
4747
/** @var \OCA\Activity\UserSettings */
4848
protected $userSettings;
4949

50-
protected function setUp() {
50+
protected function setUp(): void {
5151
parent::setUp();
5252
$this->deleteTestActivities();
5353

@@ -90,7 +90,7 @@ protected function setUp() {
9090
)));
9191
}
9292

93-
protected function tearDown() {
93+
protected function tearDown(): void {
9494
$this->deleteTestActivities();
9595
parent::tearDown();
9696
}

tests/Controller/APIv1Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
class APIv1Test extends TestCase {
5050
protected $originalWEBROOT;
5151

52-
protected function setUp() {
52+
protected function setUp(): void {
5353
parent::setUp();
5454
$this->cleanUp();
5555

@@ -94,7 +94,7 @@ protected function setUp() {
9494
}
9595
}
9696

97-
protected function tearDown() {
97+
protected function tearDown(): void {
9898
$this->cleanUp();
9999
\OC::$WEBROOT = $this->originalWEBROOT;
100100

tests/Controller/APIv2Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class APIv2Test extends TestCase {
9292
/** @var APIv2 */
9393
protected $controller;
9494

95-
protected function setUp() {
95+
protected function setUp(): void {
9696
parent::setUp();
9797

9898
$this->activityManager = $this->createMock(IManager::class);
@@ -113,7 +113,7 @@ protected function setUp() {
113113
$this->overwriteService('AvatarManager', $this->avatarManager);
114114
}
115115

116-
public function tearDown() {
116+
public function tearDown(): void {
117117

118118
$this->restoreService('AvatarManager');
119119
parent::tearDown();

tests/Controller/ActivitiesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ActivitiesTest extends TestCase {
5454
/** @var Activities */
5555
protected $controller;
5656

57-
protected function setUp() {
57+
protected function setUp(): void {
5858
parent::setUp();
5959

6060
$this->config = $this->createMock(IConfig::class);

tests/Controller/FeedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class FeedTest extends TestCase {
6464
/** @var Feed */
6565
protected $controller;
6666

67-
protected function setUp() {
67+
protected function setUp(): void {
6868
parent::setUp();
6969

7070
$this->data = $this->createMock(Data::class);

tests/CurrentUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CurrentUserTest extends TestCase {
4444
/** @var \OCP\Share\IManager|\PHPUnit_Framework_MockObject_MockObject */
4545
protected $shareManager;
4646

47-
protected function setUp() {
47+
protected function setUp(): void {
4848
parent::setUp();
4949

5050
$this->request = $this->getMockBuilder('OCP\IRequest')

tests/DataDeleteActivitiesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DataDeleteActivitiesTest extends TestCase {
4040
/** @var Data */
4141
protected $data;
4242

43-
protected function setUp() {
43+
protected function setUp(): void {
4444
parent::setUp();
4545

4646
$activities = array(
@@ -74,7 +74,7 @@ protected function setUp() {
7474
);
7575
}
7676

77-
protected function tearDown() {
77+
protected function tearDown(): void {
7878
$this->data->deleteActivities(array(
7979
'type' => 'test',
8080
));

tests/DataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DataTest extends TestCase {
4747
/** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject */
4848
protected $session;
4949

50-
protected function setUp() {
50+
protected function setUp(): void {
5151
parent::setUp();
5252

5353
$this->activityLanguage = $activityLanguage = \OCP\Util::getL10N('activity', 'en');
@@ -61,7 +61,7 @@ protected function setUp() {
6161
);
6262
}
6363

64-
protected function tearDown() {
64+
protected function tearDown(): void {
6565
$this->restoreService('UserSession');
6666
parent::tearDown();
6767
}

0 commit comments

Comments
 (0)