Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] remove brianium/paratest #892

Merged
merged 3 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/phpunits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:

- name: Check codeclimate
id: codeclimate-check
run: echo "execute=${{ matrix.php-versions == '8.2' && matrix.caches == 'array' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT
run: echo "execute=${{ matrix.php-versions == '8.3' && matrix.caches == 'array' && matrix.locks == 'redis' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT

- name: Prepare codeclimate
id: codeclimate-prepare
Expand All @@ -137,11 +137,7 @@ jobs:
- name: Run test suite
id: unit-run
run: |
if [[ $DB_CONNECTION == "mariadb" ]]; then
composer unit
else
composer parabench
fi
composer parabench
env:
WALLET_CACHE_DRIVER: ${{ matrix.caches }}
WALLET_LOCK_DRIVER: ${{ matrix.locks }}
Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"ramsey/uuid": "^4.0"
},
"require-dev": {
"brianium/paratest": "^7.4",
"driftingly/rector-laravel": "^1.0",
"ergebnis/phpstan-rules": "^2.1",
"infection/infection": "~0.27",
Expand Down Expand Up @@ -62,8 +61,6 @@
},
"scripts": {
"docs": "@php -S localhost:3000 -t ./docs",
"unit":"@php vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
"paraunit":"@php vendor/bin/paratest --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
"parabench":"@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
"phpstan": ["@phpstan-src", "@phpstan-tests"],
Expand Down
3 changes: 3 additions & 0 deletions tests/Infra/Models/ItemMultiPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function getMetaProduct(): ?array
return null;
}

/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
Expand Down
Loading