forked from pronamic/wp-documentor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtests.php
108 lines (96 loc) · 1.78 KB
/
tests.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* Test Class
*
* @author Pronamic <[email protected]>
* @copyright 2005-2022 Pronamic
* @license GPL-3.0-or-later
* @package DigitalJoeCo\Leantime\Documentor
*/
namespace DigitalJoeCo\Leantime\Documentor;
/**
* Test Class
*
* @author Remco Tolsma
* @version 1.0.0
* @since 1.0.0
*/
class TestClass {
/**
* Dummy property.
*
* @var string
*/
private $dummy = '';
/**
* Test namespace argument.
*/
public function test_namespace_argument() {
$test = $this;
/**
* Test action.
*
* @param TestClass $test Test object.
*/
\do_action( 'test', $test );
}
/**
* Dummy function.
*
* @return string
*/
public function dummy() {
return '';
}
/**
* Test tag with method call.
*/
public function test_tag_with_method_call() {
$dummy = $this->dummy();
/**
* Test tag with method call.
*
* @param TestClass $test Test object.
*/
\do_action( 'test_' . $dummy, $test );
}
/**
* Test tag with var and underscores in markdown.
*/
public function test_tag_with_var_and_underscores_in_markdown() {
$from = 'pending';
$to = 'completed';
/**
* Test tag with var and underscores in markdown.
*
* @param TestClass $test Test object.
*/
\do_action( 'test_' . $from . '_to_' . $to, $test );
}
/**
* Test property fetch.
*/
public function test_property_fetch() {
/**
* Test tag with property fetch.
*
* @param TestClass $test Test object.
*/
\do_action( 'test_' . $this->dummy, $test );
}
/**
* Test since tag.
*/
public function test_since_tag() {
$test = $this;
/**
* Test tag with property fetch.
*
* @since 1.0.0 Introduced.
* @since 1.0.1 Improved documentation.
*
* @param TestClass $test Test object.
*/
\do_action( 'test_since', $test );
}
}