Skip to content

Commit 9b2001a

Browse files
authored
Merge pull request #143 from nextcloud/update-master-php-testing-versions
Update master php testing versions
2 parents 53ae67a + 1aecbde commit 9b2001a

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
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.4snapshot
66

77
services:
88
- mysql
@@ -51,13 +51,13 @@ script:
5151

5252
matrix:
5353
include:
54-
- php: 7.1
54+
- php: 7.3
5555
env: DB=mysql
56-
- php: 7.1
56+
- php: 7.3
5757
env: DB=pgsql
58-
- php: 7.1
58+
- php: 7.3
5959
env: DB=mysql;CODECHECK=1
60-
- php: 7.1
60+
- php: 7.3
6161
env: DB=mysql;CODECHECK=2
6262
allow_failures:
6363
- env: DB=mysql;CODECHECK=2

tests/StorageWrapperTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
use OCA\FilesAccessControl\StorageWrapper;
2525
use OCP\Files\ForbiddenException;
2626
use Test\TestCase;
27+
use OCP\Files\Storage\IStorage;
28+
use OCA\FilesAccessControl\Operation;
2729

2830
class StorageWrapperTest extends TestCase {
2931

@@ -33,19 +35,16 @@ class StorageWrapperTest extends TestCase {
3335
/** @var \OCA\FilesAccessControl\Operation|\PHPUnit_Framework_MockObject_MockObject */
3436
protected $operation;
3537

36-
protected function setUp() {
38+
protected function setUp(): void {
3739
parent::setUp();
3840

39-
$this->storage = $this->getMockBuilder('OCP\Files\Storage\IStorage')
40-
->getMock();
41+
$this->storage = $this->createMock(IStorage::class);
4142

42-
$this->operation = $this->getMockBuilder('OCA\FilesAccessControl\Operation')
43-
->disableOriginalConstructor()
44-
->getMock();
43+
$this->operation = $this->createMock(Operation::class);
4544
}
4645

4746
protected function getInstance(array $methods = []) {
48-
return $this->getMockBuilder('OCA\FilesAccessControl\StorageWrapper')
47+
return $this->getMockBuilder(StorageWrapper::class)
4948
->setConstructorArgs([
5049
[
5150
'storage' => $this->storage,

tests/phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<phpunit bootstrap="bootstrap.php"
3-
strict="true"
43
verbose="true"
54
timeoutForSmallTests="900"
65
timeoutForMediumTests="900"

0 commit comments

Comments
 (0)