Skip to content

Commit ce5da47

Browse files
author
Stephan Wentz
committed
fix: Remove php 7.2 support, add php 8.0 support, fix test name case
1 parent 6eaf130 commit ce5da47

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php-versions: ['7.2', '7.3', '7.4']
14+
php-versions: ['7.3', '7.4', '8.0']
1515

1616
name: Tests on PHP ${{ matrix.php-versions }}
1717
steps:
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@master
4242
- uses: shivammathur/setup-php@v1
4343
with:
44-
php-version: 7.2
44+
php-version: 7.3
4545
coverage: none
4646
- name: Load dependencies from cache
4747
id: composer-cache
@@ -50,9 +50,9 @@ jobs:
5050
- uses: actions/cache@v1
5151
with:
5252
path: ${{ steps.composer-cache.outputs.dir }}
53-
key: ${{ runner.os }}-php7.2-lowest-composer-${{ hashFiles('**/composer.json') }}
53+
key: ${{ runner.os }}-php7.3-lowest-composer-${{ hashFiles('**/composer.json') }}
5454
restore-keys: |
55-
${{ runner.os }}-php7.2-lowest-composer-
55+
${{ runner.os }}-php7.3-lowest-composer-
5656
- run: composer update --no-progress --no-suggest --prefer-lowest
5757
- run: php vendor/bin/phpunit
5858

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"minimum-stability": "stable",
1919
"require": {
20-
"php": "^7.2|^8.0",
20+
"php": "^7.3|^8.0",
2121
"nette/utils": "^3.0",
2222
"nikic/php-parser": "^4.3",
2323
"phpstan/phpstan": "^0.12"

tests/CoversAnnotationRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ final class CoversAnnotationRuleTest extends RuleTestCase
1616
{
1717
public function testRule(): void
1818
{
19-
$this->analyse([__DIR__ . '/fixture/CoversAnnotationRule/fixture-without-unit.php'], []);
20-
$this->analyse([__DIR__ . '/fixture/CoversAnnotationRule/Unit/fixture-with-unit.php'], [
19+
$this->analyse([__DIR__ . '/Fixture/CoversAnnotationRule/fixture-without-unit.php'], []);
20+
$this->analyse([__DIR__ . '/Fixture/CoversAnnotationRule/Unit/fixture-with-unit.php'], [
2121
['No @covers or @coversDefaultClass found in test.', 17],
2222
]);
2323
}

tests/CoversExistsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class CoversExistsRuleTest extends RuleTestCase
1616
{
1717
public function testRule(): void
1818
{
19-
$this->analyse([__DIR__ . '/fixture/CoversExistsRule/fixture.php'], [
19+
$this->analyse([__DIR__ . '/Fixture/CoversExistsRule/fixture.php'], [
2020
['Class BrainbitsPhpStan\Tests\Fixture\CoversExistsRule\Invalid does not exist.', 32],
2121
['Class BrainbitsPhpStan\Tests\Fixture\CoversExistsRule\Invalid does not exist.', 33],
2222
]);

0 commit comments

Comments
 (0)