Skip to content

Commit

Permalink
Test for issue 18.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Feb 21, 2024
1 parent cf9b4c7 commit 5106700
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"bin/wp-documentor parse tests/issue-13 --exclude=file-exclude.php --exclude=folder-exclude/ --format=markdown --output=tests/issue-13/hooks.md",
"bin/wp-documentor parse tests/issue-14 --format=markdown --output=tests/issue-14/hooks.md",
"bin/wp-documentor parse tests/issue-16 --format=markdown --output=tests/issue-16/hooks.md",
"bin/wp-documentor parse tests/issue-17 --format=markdown --output=tests/issue-17/hooks.md"
"bin/wp-documentor parse tests/issue-17 --format=markdown --output=tests/issue-17/hooks.md",
"bin/wp-documentor parse tests/issue-18 --format=markdown --output=tests/issue-18/hooks.md"
]
},
"require-dev": {
Expand Down
27 changes: 27 additions & 0 deletions tests/issue-18/hooks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Hooks

- [Actions](#actions)
- [Filters](#filters)

## Actions

*This project does not contain any WordPress actions.*

## Filters

### `some_condition_filter`

*Test issue 18.*

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$some_condition` | `bool` | Condition.
`$some_other_parameter` | `mixed` | Other parameter.

Source: [tests/issue-18/test-issue-18.php](test-issue-18.php), [line 11](test-issue-18.php#L11-L19)


<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.2.0</code></em><p>

21 changes: 21 additions & 0 deletions tests/issue-18/test-issue-18.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* Test for issue 18.
*
* @author Pronamic <[email protected]>
* @copyright 2005-2022 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Documentor
*/

/**
* Test issue 18.
*
* @link https://github.com/pronamic/wp-documentor/issues/17
* @param bool $some_condition Condition.
* @param mixed $some_other_parameter Other parameter.
* @return bool
*/
if ( apply_filters( 'some_condition_filter', $some_condition, $some_other_parameter ) ) {
do_something();
}

0 comments on commit 5106700

Please sign in to comment.