Skip to content

Commit

Permalink
update test suite for php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo64 committed May 20, 2021
1 parent 4e41d8a commit 40e56c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
strategy:
matrix:
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0']
php-version: ['7.2', '7.3', '7.4', '8.0']
composer-parameters: ['--prefer-stable', '--prefer-lowest']

runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
}
],
"require": {
"php": "~7.1||~8.0",
"php": "~7.2||~8.0",
"aws/aws-sdk-php": "^3.98",
"doctrine/dbal": "^2.7"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
"phpunit/phpunit": "^8.5"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion tests/RdsDataConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RdsDataConnectionTest extends TestCase
{
use RdsDataServiceClientTrait;

protected function setUp()
protected function setUp(): void
{
$this->createRdsDataServiceClient();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/RdsDataResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function modes()
'foo',
];

yield 'COLUMN' => [
yield 'COLUMN_SPECIFIC' => [
[FetchMode::COLUMN, 1],
'bar',
];
Expand Down Expand Up @@ -73,7 +73,7 @@ public static function modes()
];
}

protected function setUp()
protected function setUp(): void
{
$this->result = new RdsDataResult(new Result([
'columnMetadata' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/RdsDataStatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RdsDataStatementTest extends TestCase
{
use RdsDataServiceClientTrait;

public function setUp()
public function setUp(): void
{
$this->createRdsDataServiceClient();
}
Expand Down

0 comments on commit 40e56c2

Please sign in to comment.