Skip to content

Commit 66e231e

Browse files
committed
Remove psalm, add docs
1 parent df08fef commit 66e231e

File tree

6 files changed

+15
-102
lines changed

6 files changed

+15
-102
lines changed

.github/workflows/linting.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -66,39 +66,6 @@ jobs:
6666
- name: Run PHPStan
6767
run: './vendor/bin/phpstan analyse --memory-limit=1G'
6868

69-
psalm:
70-
name: Psalm
71-
runs-on: ubuntu-latest
72-
73-
strategy:
74-
matrix:
75-
php-version: [ 8.2, 8.3 ]
76-
composer-strategy: [ lowest, stable ]
77-
78-
steps:
79-
- name: Set up PHP
80-
uses: shivammathur/setup-php@v2
81-
with:
82-
php-version: ${{ matrix.php-version }}
83-
84-
- name: Check out code
85-
uses: actions/checkout@v4
86-
87-
- name: Cache Composer packages
88-
id: composer-cache
89-
uses: actions/cache@v4
90-
with:
91-
path: vendor
92-
key: ${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-${{ hashFiles('**/composer.lock') }}
93-
restore-keys: |
94-
${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-
95-
96-
- name: Install dependencies
97-
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'
98-
99-
- name: Run Psalm
100-
run: './vendor/bin/psalm --show-info=false'
101-
10269
prettier:
10370
name: Prettier
10471
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.1.0] - 2025-04-01
8+
### Changed
9+
- Allow to use FQCN in fixture name filtering
10+
11+
### Internals
12+
- Removed psalm
13+
714
## [3.0.0] - 2024-06-17
815
### Added
916
- Added support for PHP 8.3
@@ -173,6 +180,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
173180
- `getNotSpecifiedSalutationId`
174181
- `getGermanCountryId`
175182

183+
[3.1.0]: https://github.com/basecom/FixturesPlugin/compare/3.0.0...3.1.0
176184
[3.0.0]: https://github.com/basecom/FixturesPlugin/compare/2.4.0...3.0.0
177185
[2.4.0]: https://github.com/basecom/FixturesPlugin/compare/2.3.0...2.4.0
178186
[2.3.0]: https://github.com/basecom/FixturesPlugin/compare/2.2.1...2.3.0

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ install:
6262
lint:
6363
make lint-php-cs-fixer
6464
make lint-phpstan
65-
make lint-psalm
6665
make lint-prettier
6766

6867
## PHP CS fixer
@@ -73,10 +72,6 @@ lint-php-cs-fixer:
7372
lint-phpstan:
7473
make docker COMMAND="./vendor/bin/phpstan analyse --memory-limit=1G"
7574

76-
## Psaml
77-
lint-psalm:
78-
make docker COMMAND="./vendor/bin/psalm --show-info=false"
79-
8075
## Prettier
8176
lint-prettier:
8277
make docker COMMAND="./node_modules/.bin/prettier --write \"src/**/*.{js,scss,yaml,yml,json,md,ts}\""

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
},
4444
"require-dev": {
4545
"friendsofphp/php-cs-fixer": "3.59.3",
46-
"phpstan/phpstan": "^1.10",
47-
"vimeo/psalm": "^5.20"
46+
"phpstan/phpstan": "^1.10"
4847
},
4948
"config": {
5049
"allow-plugins": {

docs/writing/phpunit-tests.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
In addition to running fixtures via [console command](https://symfony.com/doc/current/console.html), you can also execute fixtures within your PHPUnit tests. For this purpose, we provide a trait called `FixtureTrait`, which contains all the necessary methods to run fixtures.
44

55
## Run specific fixtures
6-
To run specific fixtures, simply add the trait to your test and call the `runSpecificFixtures` method:
6+
To run specific fixtures, simply add the trait to your test and call the `runSpecificFixtures` method. This method accepts
7+
both base class names, aswell as the FQCN:
78

89
```php
910
use Basecom\FixturePlugin\FixtureTrait; // [!code focus]
@@ -12,7 +13,7 @@ class MyTest extends TestCase {
1213
use FixtureTrait; // [!code focus]
1314

1415
public function testThatSomethingWorks(): void {
15-
$this->runSpecificFixtures(['CustomerFixture', 'ProductFixture']); // [!code focus]
16+
$this->runSpecificFixtures(['CustomerFixture', ProductFixture::class]); // [!code focus]
1617
}
1718
}
1819
```
@@ -43,6 +44,9 @@ class MyTest extends TestCase {
4344

4445
public function testThatSomethingWorks(): void {
4546
$this->runSingleFixture('CustomerFixture'); // [!code focus]
47+
48+
// Alternatively: // [!code focus]
49+
$this->runSingleFixture(CustomerFixture::class); // [!code focus]
4650
}
4751
}
4852
```

psalm.xml

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

0 commit comments

Comments
 (0)