Skip to content

Commit

Permalink
Fixed a bunch of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Mar 7, 2022
1 parent 4fc34b0 commit b7e7d34
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-20.04]
php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
php: [7.2, 7.3, 7.4, 8.0]

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

steps:

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"sort-packages": true
},
"require": {
"php": ">=7.0"
"php": ">=7.2"
},
"require-dev": {
"doctrine/orm": "^2.5",
"illuminate/contracts": "~5.0",
"mockery/mockery": "~0.9",
"mockery/mockery": "^1.3",
"pagerfanta/pagerfanta": "~1.0.0",
"phpunit/phpunit": "^4.8.35 || ^7.5",
"squizlabs/php_codesniffer": "~1.5|~2.0|~3.4",
"phpunit/phpunit": "^8.5",
"squizlabs/php_codesniffer": "~3.4",
"zendframework/zend-paginator": "~2.3"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion test/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public function testParseFieldsets()
$this->assertSame(null, $manager->getFieldset('inexistent'));
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Pagination/DoctrinePaginatorAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testPaginationAdapter()
);
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Pagination/IlluminatePaginatorAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testPaginationAdapter()
$this->assertSame('http://example.com/foo?page=1', $adapter->getUrl(1));
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Pagination/PagerfantaPaginatorAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testPaginationAdapter()
);
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Pagination/ZendFrameworkPaginatorAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testPaginationAdapter()
$this->assertSame('http://example.com/foo?page=3', $adapter->getUrl(3));
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Resource/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function testGetResourceKey()
$this->assertSame('foo', $collection->getResourceKey());
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/ScopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public function fieldsetsWithSideLoadIncludesProvider()
];
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Serializer/ArraySerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function testSerializingCollectionResourceWithoutName()
$this->assertSame($expectedJson, $scope->toJson());
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Serializer/DataArraySerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function testSerializingNullResource()
$this->assertSame($expected, $scope->toArray());
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
4 changes: 2 additions & 2 deletions test/Serializer/JsonApiSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class JsonApiSerializerTest extends TestCase
{
private $manager;

public function setUp()
public function setUp(): void
{
$this->manager = new Manager();
$this->manager->setSerializer(new JsonApiSerializer());
Expand Down Expand Up @@ -2794,7 +2794,7 @@ public function serializingWithFieldsetsProvider()
];
}

public function tearDown()
public function tearDown(): void
{
Mockery::close();
}
Expand Down
2 changes: 1 addition & 1 deletion test/TransformerAbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function testCollection()
$this->assertInstanceOf('League\Fractal\Resource\Collection', $collection);
}

public function tearDown()
public function tearDown(): void
{
m::close();
}
Expand Down

0 comments on commit b7e7d34

Please sign in to comment.