Skip to content

Commit 700524a

Browse files
bnfkwhat
authored andcommitted
Allow testing with PHP 8.1, 8.2, 8.3 and 8.4
1 parent d1de9b4 commit 700524a

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
max-parallel: 15
1010
matrix:
1111
operating-system: [ubuntu-latest]
12-
php-versions: ['7.2', '7.3', '7.4', '8.0' ]
12+
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
1313
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1414
steps:
1515
- name: Checkout
@@ -45,5 +45,5 @@ jobs:
4545
- name: Upload Artifacts
4646
uses: actions/upload-artifact@master
4747
with:
48-
name: coverage-report
48+
name: coverage-report-${{ matrix.php-versions }}
4949
path: build/coverage

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
},
3030
"require-dev": {
3131
"phan/phan": "^5",
32-
"phpunit/phpunit": "^8",
33-
"squizlabs/php_codesniffer": "3.*"
32+
"phpunit/phpunit": "^8 || ^9",
33+
"squizlabs/php_codesniffer": "^3"
3434
},
3535
"autoload": {
3636
"psr-4": {

tests/Statement/DeleteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function setUp(): void
3131
$stmt = $this->createMock(PDOStatement::class);
3232
$stmt->method('execute')
3333
->with($this->anything())
34-
->willReturn($stmt);
34+
->willReturn(true);
3535
$stmt->method('rowCount')
3636
->willReturn(1);
3737

tests/Statement/InsertTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public function setUp(): void
2626
$stmt = $this->createMock(PDOStatement::class);
2727
$stmt->method('execute')
2828
->with($this->anything())
29-
->willReturn($stmt);
29+
->willReturn(true);
3030

3131
$pdo = $this->createMock(Database::class);
3232
$pdo->method('prepare')
3333
->with($this->anything())
3434
->willReturn($stmt);
3535
$pdo->method('lastInsertId')
36-
->willReturn(1);
36+
->willReturn('1');
3737

3838
$this->subject = new Insert($pdo);
3939
}

tests/Statement/UpdateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function setUp(): void
2929
$stmt = $this->createMock(PDOStatement::class);
3030
$stmt->method('execute')
3131
->with($this->anything())
32-
->willReturn($stmt);
32+
->willReturn(true);
3333
$stmt->method('rowCount')
3434
->willReturn(1);
3535

0 commit comments

Comments
 (0)