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

Add unit tests to assert schema validation works as expected #11

Merged
merged 11 commits into from
Apr 3, 2024
Merged
3 changes: 3 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ jobs:

- name: Run type checker
run: ./vendor/bin/psalm --php-version=${{ matrix.php-versions }}

- name: Run unit tests
run: ./vendor/bin/phpunit --testdox
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.phpunit.cache/
/vendor/
.php-cs-fixer.cache
.php-cs-fixer.cache
2 changes: 2 additions & 0 deletions .idea/api-client-php.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
"Mittwald\\ApiClient\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Mittwald\\ApiClient\\Tests\\": "tests/"
},
"files": [
"vendor/phpunit/phpunit/src/Framework/Assert/Functions.php"
]
},
"authors": [
{
"name": "Martin Helmich",
Expand All @@ -23,7 +31,8 @@
"require-dev": {
"vimeo/psalm": "^5.15",
"friendsofphp/php-cs-fixer": "^3.25",
"rector/rector": "^0.18.2"
"rector/rector": "^0.18.2",
"phpunit/phpunit": "^10.5"
},
"scripts": {
"check": "psalm --show-info=false",
Expand Down
Loading
Loading