Skip to content

Commit aa9f127

Browse files
authored
Make sure CI is green (#535)
* Make sure CI is green * Remove .travis.yml * Minor CS * Fixed a bunch of tests * Remove scrutinizer
1 parent fc67d13 commit aa9f127

17 files changed

+19
-80
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
os: [ubuntu-latest]
12-
php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
11+
os: [ubuntu-20.04]
12+
php: [7.2, 7.3, 7.4, 8.0]
1313

1414
name: League - PHP ${{ matrix.php }} on ${{ matrix.os }}
1515

@@ -44,6 +44,3 @@ jobs:
4444

4545
- name: Download Scrutinizer phar
4646
run: wget https://scrutinizer-ci.com/ocular.phar
47-
48-
- name: Send Coverage Report to Scrutinizer
49-
run: php ocular.phar code-coverage:upload --format=php-clover coverage.clover

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
.idea
2-
.ruby-version
31
composer.lock
42
build
53
vendor
6-
Gemfile.lock
7-
coverage
4+
.phpunit.result.cache

.scrutinizer.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[![Latest Version](https://img.shields.io/github/release/thephpleague/fractal.svg?style=flat-square)](https://github.com/thephpleague/fractal/releases)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
55
![The PHP League Tests](https://github.com/thephpleague/fractal/workflows/The%20PHP%20League%20Tests/badge.svg)
6-
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/fractal.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/fractal/code-structure)
7-
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/fractal.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/fractal)
86
[![Total Downloads](https://img.shields.io/packagist/dt/league/fractal.svg?style=flat-square)](https://packagist.org/packages/league/fractal)
97

108
Fractal provides a presentation and transformation layer for complex data output, the like found in

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
"sort-packages": true
2222
},
2323
"require": {
24-
"php": ">=7.0"
24+
"php": ">=7.2"
2525
},
2626
"require-dev": {
2727
"doctrine/orm": "^2.5",
2828
"illuminate/contracts": "~5.0",
29-
"mockery/mockery": "~0.9",
29+
"mockery/mockery": "^1.3",
3030
"pagerfanta/pagerfanta": "~1.0.0",
31-
"phpunit/phpunit": "^4.8.35 || ^7.5",
32-
"squizlabs/php_codesniffer": "~1.5|~2.0|~3.4",
31+
"phpunit/phpunit": "^8.5",
32+
"squizlabs/php_codesniffer": "~3.4",
3333
"zendframework/zend-paginator": "~2.3"
3434
},
3535
"suggest": {

test/ManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function testParseFieldsets()
276276
$this->assertSame(null, $manager->getFieldset('inexistent'));
277277
}
278278

279-
public function tearDown()
279+
public function tearDown(): void
280280
{
281281
Mockery::close();
282282
}

test/Pagination/DoctrinePaginatorAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testPaginationAdapter()
5757
);
5858
}
5959

60-
public function tearDown()
60+
public function tearDown(): void
6161
{
6262
Mockery::close();
6363
}

test/Pagination/IlluminatePaginatorAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testPaginationAdapter()
3838
$this->assertSame('http://example.com/foo?page=1', $adapter->getUrl(1));
3939
}
4040

41-
public function tearDown()
41+
public function tearDown(): void
4242
{
4343
Mockery::close();
4444
}

test/Pagination/PagerfantaPaginatorAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testPaginationAdapter()
5555
);
5656
}
5757

58-
public function tearDown()
58+
public function tearDown(): void
5959
{
6060
Mockery::close();
6161
}

0 commit comments

Comments
 (0)