@@ -17,8 +17,8 @@ public function test_generate_search_index_one_item(): void
1717 $ apiFacade ->method ('getPhelFunctions ' )
1818 ->willReturn ([
1919 PhelFunction::fromArray ([
20- 'fnName ' => 'table? ' ,
21- 'fnSignature ' => '(table? x) ' ,
20+ 'name ' => 'table? ' ,
21+ 'signature ' => '(table? x) ' ,
2222 'desc ' => 'doc for table? ' ,
2323 'groupKey ' => 'table '
2424 ]),
@@ -30,8 +30,8 @@ public function test_generate_search_index_one_item(): void
3030 $ expected = [
3131 [
3232 'id ' => 'api_table? ' ,
33- 'fnName ' => 'table? ' ,
34- 'fnSignature ' => '(table? x) ' ,
33+ 'name ' => 'table? ' ,
34+ 'signature ' => '(table? x) ' ,
3535 'desc ' => 'doc for table? ' ,
3636 'anchor ' => 'table ' ,
3737 'type ' => 'api ' ,
@@ -51,14 +51,14 @@ public function test_multiple_items_in_different_groups(): void
5151 $ apiFacade ->method ('getPhelFunctions ' )
5252 ->willReturn ([
5353 PhelFunction::fromArray ([
54- 'fnName ' => 'table ' ,
55- 'fnSignature ' => '(table & xs) ' ,
54+ 'name ' => 'table ' ,
55+ 'signature ' => '(table & xs) ' ,
5656 'desc ' => 'doc for table ' ,
5757 'groupKey ' => 'table ' ,
5858 ]),
5959 PhelFunction::fromArray ([
60- 'fnName ' => 'not ' ,
61- 'fnSignature ' => '(not x) ' ,
60+ 'name ' => 'not ' ,
61+ 'signature ' => '(not x) ' ,
6262 'desc ' => 'doc for not ' ,
6363 'groupKey ' => 'not ' ,
6464 ]),
@@ -70,16 +70,16 @@ public function test_multiple_items_in_different_groups(): void
7070 $ expected = [
7171 [
7272 'id ' => 'api_table ' ,
73- 'fnName ' => 'table ' ,
74- 'fnSignature ' => '(table & xs) ' ,
73+ 'name ' => 'table ' ,
74+ 'signature ' => '(table & xs) ' ,
7575 'desc ' => 'doc for table ' ,
7676 'anchor ' => 'table ' ,
7777 'type ' => 'api ' ,
7878 ],
7979 [
8080 'id ' => 'api_not ' ,
81- 'fnName ' => 'not ' ,
82- 'fnSignature ' => '(not x) ' ,
81+ 'name ' => 'not ' ,
82+ 'signature ' => '(not x) ' ,
8383 'desc ' => 'doc for not ' ,
8484 'anchor ' => 'not ' ,
8585 'type ' => 'api ' ,
@@ -99,14 +99,14 @@ public function test_multiple_items_in_the_same_group(): void
9999 $ apiFacade ->method ('getPhelFunctions ' )
100100 ->willReturn ([
101101 PhelFunction::fromArray ([
102- 'fnName ' => 'table ' ,
103- 'fnSignature ' => '(table & xs) ' ,
102+ 'name ' => 'table ' ,
103+ 'signature ' => '(table & xs) ' ,
104104 'desc ' => 'doc for table ' ,
105105 'groupKey ' => 'table ' ,
106106 ]),
107107 PhelFunction::fromArray ([
108- 'fnName ' => 'table? ' ,
109- 'fnSignature ' => '(table? x) ' ,
108+ 'name ' => 'table? ' ,
109+ 'signature ' => '(table? x) ' ,
110110 'desc ' => 'doc for table? ' ,
111111 'groupKey ' => 'table ' ,
112112 ]),
@@ -118,16 +118,16 @@ public function test_multiple_items_in_the_same_group(): void
118118 $ expected = [
119119 [
120120 'id ' => 'api_table ' ,
121- 'fnName ' => 'table ' ,
122- 'fnSignature ' => '(table & xs) ' ,
121+ 'name ' => 'table ' ,
122+ 'signature ' => '(table & xs) ' ,
123123 'desc ' => 'doc for table ' ,
124124 'anchor ' => 'table ' ,
125125 'type ' => 'api ' ,
126126 ],
127127 [
128128 'id ' => 'api_table? ' ,
129- 'fnName ' => 'table? ' ,
130- 'fnSignature ' => '(table? x) ' ,
129+ 'name ' => 'table? ' ,
130+ 'signature ' => '(table? x) ' ,
131131 'desc ' => 'doc for table? ' ,
132132 'anchor ' => 'table-1 ' ,
133133 'type ' => 'api ' ,
@@ -147,14 +147,14 @@ public function test_fn_name_with_slash_in_the_middle(): void
147147 $ apiFacade ->method ('getPhelFunctions ' )
148148 ->willReturn ([
149149 PhelFunction::fromArray ([
150- 'fnName ' => 'http/response ' ,
151- 'fnSignature ' => '' ,
150+ 'name ' => 'http/response ' ,
151+ 'signature ' => '' ,
152152 'desc ' => '' ,
153153 'groupKey ' => 'http-response ' ,
154154 ]),
155155 PhelFunction::fromArray ([
156- 'fnName ' => 'http/response? ' ,
157- 'fnSignature ' => '' ,
156+ 'name ' => 'http/response? ' ,
157+ 'signature ' => '' ,
158158 'desc ' => '' ,
159159 'groupKey ' => 'http-response-1 ' ,
160160 ]),
@@ -166,16 +166,16 @@ public function test_fn_name_with_slash_in_the_middle(): void
166166 $ expected = [
167167 [
168168 'id ' => 'api_http/response ' ,
169- 'fnName ' => 'http/response ' ,
170- 'fnSignature ' => '' ,
169+ 'name ' => 'http/response ' ,
170+ 'signature ' => '' ,
171171 'desc ' => '' ,
172172 'anchor ' => 'http-response ' ,
173173 'type ' => 'api ' ,
174174 ],
175175 [
176176 'id ' => 'api_http/response? ' ,
177- 'fnName ' => 'http/response? ' ,
178- 'fnSignature ' => '' ,
177+ 'name ' => 'http/response? ' ,
178+ 'signature ' => '' ,
179179 'desc ' => '' ,
180180 'anchor ' => 'http-response-1 ' ,
181181 'type ' => 'api ' ,
@@ -195,14 +195,14 @@ public function test_fn_name_ending_with_minus(): void
195195 $ apiFacade ->method ('getPhelFunctions ' )
196196 ->willReturn ([
197197 PhelFunction::fromArray ([
198- 'fnName ' => 'defn ' ,
199- 'fnSignature ' => '' ,
198+ 'name ' => 'defn ' ,
199+ 'signature ' => '' ,
200200 'desc ' => '' ,
201201 'groupKey ' => 'defn ' ,
202202 ]),
203203 PhelFunction::fromArray ([
204- 'fnName ' => 'defn- ' ,
205- 'fnSignature ' => '' ,
204+ 'name ' => 'defn- ' ,
205+ 'signature ' => '' ,
206206 'desc ' => '' ,
207207 'groupKey ' => 'defn ' ,
208208 ]),
@@ -214,16 +214,16 @@ public function test_fn_name_ending_with_minus(): void
214214 $ expected = [
215215 [
216216 'id ' => 'api_defn ' ,
217- 'fnName ' => 'defn ' ,
218- 'fnSignature ' => '' ,
217+ 'name ' => 'defn ' ,
218+ 'signature ' => '' ,
219219 'desc ' => '' ,
220220 'anchor ' => 'defn ' ,
221221 'type ' => 'api ' ,
222222 ],
223223 [
224224 'id ' => 'api_defn- ' ,
225- 'fnName ' => 'defn- ' ,
226- 'fnSignature ' => '' ,
225+ 'name ' => 'defn- ' ,
226+ 'signature ' => '' ,
227227 'desc ' => '' ,
228228 'anchor ' => 'defn-1 ' ,
229229 'type ' => 'api ' ,
@@ -243,14 +243,14 @@ public function test_fn_name_with_upper_case(): void
243243 $ apiFacade ->method ('getPhelFunctions ' )
244244 ->willReturn ([
245245 PhelFunction::fromArray ([
246- 'fnName ' => 'NAN ' ,
247- 'fnSignature ' => '' ,
246+ 'name ' => 'NAN ' ,
247+ 'signature ' => '' ,
248248 'desc ' => '' ,
249249 'groupKey ' => 'nan ' ,
250250 ]),
251251 PhelFunction::fromArray ([
252- 'fnName ' => 'nan? ' ,
253- 'fnSignature ' => '' ,
252+ 'name ' => 'nan? ' ,
253+ 'signature ' => '' ,
254254 'desc ' => '' ,
255255 'groupKey ' => 'nan ' ,
256256 ]),
@@ -262,16 +262,16 @@ public function test_fn_name_with_upper_case(): void
262262 $ expected = [
263263 [
264264 'id ' => 'api_NAN ' ,
265- 'fnName ' => 'NAN ' ,
266- 'fnSignature ' => '' ,
265+ 'name ' => 'NAN ' ,
266+ 'signature ' => '' ,
267267 'desc ' => '' ,
268268 'anchor ' => 'nan ' ,
269269 'type ' => 'api ' ,
270270 ],
271271 [
272272 'id ' => 'api_nan? ' ,
273- 'fnName ' => 'nan? ' ,
274- 'fnSignature ' => '' ,
273+ 'name ' => 'nan? ' ,
274+ 'signature ' => '' ,
275275 'desc ' => '' ,
276276 'anchor ' => 'nan-1 ' ,
277277 'type ' => 'api ' ,
0 commit comments