Skip to content

Commit

Permalink
Merge pull request #11 from mittwald/bugfix/schema-validation
Browse files Browse the repository at this point in the history
Add unit tests to assert schema validation works as expected
  • Loading branch information
martin-helmich authored Apr 3, 2024
2 parents 3aa5e03 + 2047367 commit 300130f
Show file tree
Hide file tree
Showing 7 changed files with 1,981 additions and 400 deletions.
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

0 comments on commit 300130f

Please sign in to comment.