1414final class RulesTest extends TestCase
1515{
1616 #[Test]
17- public function forColumn_returns_required_rule_by_default (): void
17+ public function for_column_returns_required_rule_by_default (): void
1818 {
1919 $ column = new Column ('test ' , 'unknown ' );
2020
2121 $ this ->assertEquals (['required ' ], Rules::fromColumn ('context ' , $ column ));
2222 }
2323
2424 #[Test]
25- public function forColumn_returns_nullable_rule (): void
25+ public function for_column_returns_nullable_rule (): void
2626 {
2727 $ column = new Column ('test ' , 'string ' , ['nullable ' ]);
2828
@@ -31,15 +31,15 @@ public function forColumn_returns_nullable_rule(): void
3131
3232 #[Test]
3333 #[DataProvider('stringDataTypesProvider ' )]
34- public function forColumn_returns_string_rule_for_string_data_types ($ data_type ): void
34+ public function for_column_returns_string_rule_for_string_data_types ($ data_type ): void
3535 {
3636 $ column = new Column ('test ' , $ data_type );
3737
3838 $ this ->assertContains ('string ' , Rules::fromColumn ('context ' , $ column ));
3939 }
4040
4141 #[Test]
42- public function forColumn_returns_max_rule_for_string_attributes (): void
42+ public function for_column_returns_max_rule_for_string_attributes (): void
4343 {
4444 $ column = new Column ('test ' , 'string ' , [], [1000 ]);
4545
@@ -52,7 +52,7 @@ public function forColumn_returns_max_rule_for_string_attributes(): void
5252
5353 #[Test]
5454 #[DataProvider('stringDataTypesProvider ' )]
55- public function forColumn_uses_email_rule_for_columns_named_email_or_email_address ($ data_type ): void
55+ public function for_column_uses_email_rule_for_columns_named_email_or_email_address ($ data_type ): void
5656 {
5757 $ column = new Column ('email ' , $ data_type );
5858
@@ -67,7 +67,7 @@ public function forColumn_uses_email_rule_for_columns_named_email_or_email_addre
6767
6868 #[Test]
6969 #[DataProvider('stringDataTypesProvider ' )]
70- public function forColumn_uses_password_rule_for_columns_named_password ($ data_type ): void
70+ public function for_column_uses_password_rule_for_columns_named_password ($ data_type ): void
7171 {
7272 $ column = new Column ('password ' , $ data_type );
7373
@@ -77,7 +77,7 @@ public function forColumn_uses_password_rule_for_columns_named_password($data_ty
7777
7878 #[Test]
7979 #[DataProvider('numericDataTypesProvider ' )]
80- public function forColumn_returns_numeric_rule_for_numeric_types ($ data_type ): void
80+ public function for_column_returns_numeric_rule_for_numeric_types ($ data_type ): void
8181 {
8282 $ column = new Column ('test ' , $ data_type );
8383
@@ -86,30 +86,30 @@ public function forColumn_returns_numeric_rule_for_numeric_types($data_type): vo
8686
8787 #[Test]
8888 #[DataProvider('integerDataTypesProvider ' )]
89- public function forColumn_returns_integer_rule_for_integer_types ($ data_type ): void
89+ public function for_column_returns_integer_rule_for_integer_types ($ data_type ): void
9090 {
9191 $ column = new Column ('test ' , $ data_type );
9292 $ this ->assertContains ('integer ' , Rules::fromColumn ('context ' , $ column ));
9393 }
9494
9595 #[Test]
96- public function forColumn_return_exists_rule_for_id_column (): void
96+ public function for_column_return_exists_rule_for_id_column (): void
9797 {
9898 $ column = new Column ('user_id ' , 'id ' );
9999
100100 $ this ->assertContains ('exists:users,id ' , Rules::fromColumn ('context ' , $ column ));
101101 }
102102
103103 #[Test]
104- public function forColumn_return_exists_rule_id_column_with_attribute (): void
104+ public function for_column_return_exists_rule_id_column_with_attribute (): void
105105 {
106106 $ column = new Column ('author_id ' , 'id ' , [], ['user ' ]);
107107
108108 $ this ->assertContains ('exists:users,id ' , Rules::fromColumn ('context ' , $ column ));
109109 }
110110
111111 #[Test]
112- public function forColumn_return_exists_rule_for_the_unique_modifier (): void
112+ public function for_column_return_exists_rule_for_the_unique_modifier (): void
113113 {
114114 $ column = new Column ('column ' , 'string ' , ['unique ' ]);
115115
@@ -118,7 +118,7 @@ public function forColumn_return_exists_rule_for_the_unique_modifier(): void
118118
119119 #[Test]
120120 #[DataProvider('relationshipColumnProvider ' )]
121- public function forColumn_returns_exists_rule_for_foreign_keys ($ name , $ table ): void
121+ public function for_column_returns_exists_rule_for_foreign_keys ($ name , $ table ): void
122122 {
123123 $ column = new Column ($ name , 'id ' );
124124
@@ -129,7 +129,7 @@ public function forColumn_returns_exists_rule_for_foreign_keys($name, $table): v
129129 }
130130
131131 #[Test]
132- public function forColumn_returns_exists_rule_for_foreign_keys_with_foreign_table_name (): void
132+ public function for_column_returns_exists_rule_for_foreign_keys_with_foreign_table_name (): void
133133 {
134134 $ column = new Column ('author_id ' , 'id ' , [['foreign ' => 'users ' ]]);
135135
@@ -140,7 +140,7 @@ public function forColumn_returns_exists_rule_for_foreign_keys_with_foreign_tabl
140140 }
141141
142142 #[Test]
143- public function forColumn_returns_gt0_rule_for_unsigned_numeric_types (): void
143+ public function for_column_returns_gt0_rule_for_unsigned_numeric_types (): void
144144 {
145145 $ column = new Column ('test ' , 'integer ' );
146146
@@ -152,7 +152,7 @@ public function forColumn_returns_gt0_rule_for_unsigned_numeric_types(): void
152152 }
153153
154154 #[Test]
155- public function forColumn_returns_in_rule_for_enums_and_sets (): void
155+ public function for_column_returns_in_rule_for_enums_and_sets (): void
156156 {
157157 $ column = new Column ('test ' , 'enum ' , [], ['alpha ' , 'bravo ' , 'charlie ' ]);
158158 $ this ->assertContains ('in:alpha,bravo,charlie ' , Rules::fromColumn ('context ' , $ column ));
@@ -164,31 +164,31 @@ public function forColumn_returns_in_rule_for_enums_and_sets(): void
164164
165165 #[Test]
166166 #[DataProvider('dateDataTypesProvider ' )]
167- public function forColumn_returns_date_rule_for_date_types ($ data_type ): void
167+ public function for_column_returns_date_rule_for_date_types ($ data_type ): void
168168 {
169169 $ column = new Column ('test ' , $ data_type );
170170
171171 $ this ->assertContains ('date ' , Rules::fromColumn ('context ' , $ column ));
172172 }
173173
174174 #[Test]
175- public function forColumn_return_json_rule_for_the_json_type (): void
175+ public function for_column_return_json_rule_for_the_json_type (): void
176176 {
177177 $ column = new Column ('column ' , 'json ' );
178178
179179 $ this ->assertContains ('json ' , Rules::fromColumn ('context ' , $ column ));
180180 }
181181
182182 #[Test]
183- public function forColumn_does_not_return_between_rule_for_decimal_without_precion_and_scale (): void
183+ public function for_column_does_not_return_between_rule_for_decimal_without_precion_and_scale (): void
184184 {
185185 $ column = new Column ('column ' , 'decimal ' );
186186
187187 $ this ->assertNotContains ('between ' , Rules::fromColumn ('context ' , $ column ));
188188 }
189189
190190 #[Test]
191- public function forColumn_does_not_return_between_rule_for_unsigned_decimal_without_precision_and_scale (): void
191+ public function for_column_does_not_return_between_rule_for_unsigned_decimal_without_precision_and_scale (): void
192192 {
193193 $ unsignedBeforeDecimalColumn = new Column ('column ' , 'unsigned decimal ' );
194194
@@ -201,21 +201,21 @@ public function forColumn_does_not_return_between_rule_for_unsigned_decimal_with
201201
202202 #[Test]
203203 #[DataProvider('noBetweenRuleDataProvider ' )]
204- public function forColumn_does_not_return_between_rule_for_double_without_precision_and_scale ($ column ): void
204+ public function for_column_does_not_return_between_rule_for_double_without_precision_and_scale ($ column ): void
205205 {
206206 $ this ->assertNotContains ('between ' , Rules::fromColumn ('context ' , $ column ));
207207 }
208208
209209 #[Test]
210210 #[DataProvider('noBetweenRuleDataProvider ' )]
211- public function forColumn_does_not_return_between_rule ($ column ): void
211+ public function for_column_does_not_return_between_rule ($ column ): void
212212 {
213213 $ this ->assertNotContains ('between ' , Rules::fromColumn ('context ' , $ column ));
214214 }
215215
216216 #[Test]
217217 #[DataProvider('betweenRuleDataProvider ' )]
218- public function forColumn_returns_between_rule ($ column , $ interval ): void
218+ public function for_column_returns_between_rule ($ column , $ interval ): void
219219 {
220220 $ fromColumn = Rules::fromColumn ('context ' , $ column );
221221 $ this ->assertContains ("between: $ interval " , $ fromColumn );
0 commit comments