|
9 | 9 | // Default value of true
|
10 | 10 | assertType('void', get_search_form());
|
11 | 11 | assertType('void', the_title_attribute());
|
12 |
| -assertType('void', wp_dropdown_languages()); |
13 | 12 | assertType('void', wp_get_archives());
|
14 | 13 | assertType('void', wp_list_authors());
|
15 | 14 | assertType('void', wp_list_bookmarks());
|
|
24 | 23 | $args = ['echo' => true];
|
25 | 24 | assertType('void', get_search_form($args));
|
26 | 25 | assertType('void', the_title_attribute($args));
|
27 |
| -assertType('void', wp_dropdown_languages($args)); |
28 | 26 | assertType('void', wp_get_archives($args));
|
29 | 27 | assertType('void', wp_list_authors($args));
|
30 | 28 | assertType('void', wp_list_bookmarks($args));
|
|
37 | 35 |
|
38 | 36 | // Explicit array key value of 1
|
39 | 37 | $args = ['echo' => 1];
|
40 |
| -assertType('void', wp_dropdown_languages($args)); |
41 | 38 | assertType('void', wp_get_archives($args));
|
42 | 39 | assertType('void', wp_list_bookmarks($args));
|
43 | 40 | assertType('void|false', wp_list_categories($args));
|
|
46 | 43 | $args = ['echo' => false];
|
47 | 44 | assertType('string', get_search_form($args));
|
48 | 45 | assertType('string|void', the_title_attribute($args));
|
49 |
| -assertType('string|void', wp_dropdown_languages($args)); |
50 | 46 | assertType('string|void', wp_get_archives($args));
|
51 | 47 | assertType('string', wp_list_authors($args));
|
52 | 48 | assertType('string', wp_list_bookmarks($args));
|
|
59 | 55 |
|
60 | 56 | // Explicit array key value of 0
|
61 | 57 | $args = ['echo' => 0];
|
62 |
| -assertType('string|void', wp_dropdown_languages($args)); |
63 | 58 | assertType('string|void', wp_get_archives($args));
|
64 | 59 | assertType('string', wp_list_bookmarks($args));
|
65 | 60 | assertType('string|false', wp_list_categories($args));
|
|
68 | 63 | $args = ['echo' => $_GET['foo']];
|
69 | 64 | assertType('string|void', get_search_form($args));
|
70 | 65 | assertType('string|void', the_title_attribute($args));
|
71 |
| -assertType('string|void', wp_dropdown_languages($args)); |
72 | 66 | assertType('string|void', wp_get_archives($args));
|
73 | 67 | assertType('string|void', wp_list_authors($args));
|
74 | 68 | assertType('string|void', wp_list_bookmarks($args));
|
|
82 | 76 | // Explicit no query string value
|
83 | 77 | $args = 'akey=avalue';
|
84 | 78 | assertType('void', the_title_attribute($args));
|
85 |
| -assertType('void', wp_dropdown_languages($args)); |
86 | 79 | assertType('void', wp_get_archives($args));
|
87 | 80 | assertType('void', wp_list_authors($args));
|
88 | 81 | assertType('void', wp_list_bookmarks($args));
|
|
95 | 88 | // Explicit non empty non numeric query string value (includes 'true' & 'false')
|
96 | 89 | $args = 'echo=nonemptynonnumeric&akey=avalue';
|
97 | 90 | assertType('void', the_title_attribute($args));
|
98 |
| -assertType('void', wp_dropdown_languages($args)); |
99 | 91 | assertType('void', wp_get_archives($args));
|
100 | 92 | assertType('void', wp_list_authors($args));
|
101 | 93 | assertType('void', wp_list_bookmarks($args));
|
|
108 | 100 | // Explicit non zero numeric query string value
|
109 | 101 | $args = 'echo=1&akey=avalue';
|
110 | 102 | assertType('void', the_title_attribute($args));
|
111 |
| -assertType('void', wp_dropdown_languages($args)); |
112 | 103 | assertType('void', wp_get_archives($args));
|
113 | 104 | assertType('void', wp_list_authors($args));
|
114 | 105 | assertType('void', wp_list_bookmarks($args));
|
|
121 | 112 | // Explicit query string value of 0
|
122 | 113 | $args = 'echo=0&akey=avalue';
|
123 | 114 | assertType('string|void', the_title_attribute($args));
|
124 |
| -assertType('string|void', wp_dropdown_languages($args)); |
125 | 115 | assertType('string|void', wp_get_archives($args));
|
126 | 116 | assertType('string', wp_list_authors($args));
|
127 | 117 | assertType('string', wp_list_bookmarks($args));
|
|
134 | 124 | // Explicit empty query string value
|
135 | 125 | $args = 'echo=&akey=avalue';
|
136 | 126 | assertType('string|void', the_title_attribute($args));
|
137 |
| -assertType('string|void', wp_dropdown_languages($args)); |
138 | 127 | assertType('string|void', wp_get_archives($args));
|
139 | 128 | assertType('string', wp_list_authors($args));
|
140 | 129 | assertType('string', wp_list_bookmarks($args));
|
|
148 | 137 | $args = $_GET['foo'];
|
149 | 138 | assertType('string|void', get_search_form($args));
|
150 | 139 | assertType('string|void', the_title_attribute($args));
|
151 |
| -assertType('string|void', wp_dropdown_languages($args)); |
152 | 140 | assertType('string|void', wp_get_archives($args));
|
153 | 141 | assertType('string|void', wp_list_authors($args));
|
154 | 142 | assertType('string|void', wp_list_bookmarks($args));
|
|
164 | 152 | $args = '';
|
165 | 153 | assertType('string|void', get_search_form($args));
|
166 | 154 | assertType('string|void', the_title_attribute($args));
|
167 |
| -assertType('string|void', wp_dropdown_languages($args)); |
168 | 155 | assertType('string|void', wp_get_archives($args));
|
169 | 156 | assertType('string|void', wp_list_authors($args));
|
170 | 157 | assertType('string|void', wp_list_bookmarks($args));
|
|
0 commit comments