Skip to content
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
3 changes: 3 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ jobs:
- name: Install tooling
run: composer install

- name: Test
run: composer test

- name: Update Content
run: php parser.php --update
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor/
/vendor/
.phpunit.result.cache
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Run `php parser.php --update` to fetch updated content over WP REST API (sorted

- [ ] Consider including the `wp-parser-(function|class|hook|method)` content types.

## Notes

- We're using PHPUnit 9 because test case filenames must match the class names [in later versions](https://github.com/sebastianbergmann/phpunit/issues/4621) (don't support `class-` prefixed used by WP).

## Credits

- Tooling created by [Kaspars](https://kaspars.net) ([@konstruktors](https://x.com/konstruktors)) and [contributors](https://github.com/kasparsd/wp-docs-md/graphs/contributors).
Expand Down
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
},
"require": {
"league/html-to-markdown": "^5.1"
},
"require-dev": {
"phpunit/phpunit": "^9"
},
"scripts": {
"test": "phpunit"
}
}
Loading