Skip to content

Commit 8255215

Browse files
authored
Merge pull request #6670 from kenjis/refactor-FormatRulesTest
refactor: FormatRulesTest and StrictRules\FormatRulesTest
2 parents d356d3b + 5f9ba4e commit 8255215

File tree

2 files changed

+33
-1303
lines changed

2 files changed

+33
-1303
lines changed

tests/system/Validation/FormatRulesTest.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818

1919
/**
2020
* @internal
21+
*
22+
* @no-final
2123
*/
22-
final class FormatRulesTest extends CIUnitTestCase
24+
class FormatRulesTest extends CIUnitTestCase
2325
{
2426
public const ALPHABET = 'abcdefghijklmnopqrstuvwxyzABCDEFGHLIJKLMNOPQRSTUVWXYZ';
2527
public const ALPHANUMERIC = 'abcdefghijklmnopqrstuvwxyzABCDEFGHLIJKLMNOPQRSTUVWXYZ0123456789';
2628

27-
private Validation $validation;
28-
private array $config = [
29+
protected Validation $validation;
30+
protected array $config = [
2931
'ruleSets' => [
3032
Rules::class,
3133
FormatRules::class,
@@ -216,6 +218,11 @@ public function urlProvider(): Generator
216218
false,
217219
false,
218220
],
221+
[
222+
"http://www.codeigniter.com\n",
223+
false,
224+
false,
225+
],
219226
];
220227
}
221228

0 commit comments

Comments
 (0)