@@ -40,7 +40,7 @@ function createForm(): Form
4040}
4141
4242
43- test ('setDefaults() + array ' , function () {
43+ test ('setting form defaults and retrieving array values ' , function () {
4444 $ form = createForm ();
4545 Assert::false ($ form ->isSubmitted ());
4646
@@ -69,7 +69,7 @@ test('setDefaults() + array', function () {
6969});
7070
7171
72- test ('submitted form + getValues(array) ' , function () {
72+ test ('handles POST submission with nested data ' , function () {
7373 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
7474
7575 $ form = createForm ();
@@ -87,7 +87,7 @@ test('submitted form + getValues(array)', function () {
8787});
8888
8989
90- test ('submitted form + reset() ' , function () {
90+ test ('resetting form clears submitted values ' , function () {
9191 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
9292
9393 $ form = createForm ();
@@ -109,7 +109,7 @@ test('submitted form + reset()', function () {
109109});
110110
111111
112- test ('setValues() + array ' , function () {
112+ test ('setting form values with erase option ' , function () {
113113 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
114114
115115 $ form = createForm ();
@@ -154,7 +154,7 @@ test('setValues() + array', function () {
154154});
155155
156156
157- test ('getValues(...arguments...) ' , function () {
157+ test ('updating form values without erasing ' , function () {
158158 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
159159
160160 $ form = createForm ();
@@ -181,7 +181,7 @@ test('getValues(...arguments...)', function () {
181181});
182182
183183
184- test ('setMappedType( array) ' , function () {
184+ test ('using array as mapped type for form values ' , function () {
185185 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
186186
187187 $ form = createForm ();
@@ -209,7 +209,7 @@ test('setMappedType(array)', function () {
209209});
210210
211211
212- test ('onSuccess test ' , function () {
212+ test ('triggering onSuccess with correct value types ' , function () {
213213 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
214214
215215 $ form = createForm ();
@@ -262,7 +262,7 @@ test('onSuccess test', function () {
262262});
263263
264264
265- test ('submitted form + setValidationScope() + getValues(array) ' , function () {
265+ test ('validation scope limits submitted data ' , function () {
266266 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
267267 $ _POST ['send ' ] = '' ;
268268
@@ -280,7 +280,7 @@ test('submitted form + setValidationScope() + getValues(array)', function () {
280280});
281281
282282
283- test ('submitted form + setValidationScope() + getValues(array) ' , function () {
283+ test ('validation scope applied to container ' , function () {
284284 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
285285 $ _POST ['send ' ] = '' ;
286286
@@ -297,7 +297,7 @@ test('submitted form + setValidationScope() + getValues(array)', function () {
297297 ], $ form ['first ' ]->getValues ('array ' ));
298298});
299299
300- test ('submitted form + setValidationScope() + getValues(array) ' , function () {
300+ test ('validation scope on nested container fields ' , function () {
301301 $ _SERVER ['REQUEST_METHOD ' ] = 'POST ' ;
302302 $ _POST ['send ' ] = '' ;
303303
0 commit comments