Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit bc3b803

Browse files
committed
chore: simplified message var to be coherent with other tests
1 parent 6e04a28 commit bc3b803

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/NotBlankTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class NotBlankTest extends AbstractTest
1717
public static function provideRuleFailureConditionData(): \Generator
1818
{
1919
$exception = NotBlankException::class;
20-
$exceptionMessage = '/The "(.*)" value should not be blank, "(.*)" given./';
20+
$message = '/The "(.*)" value should not be blank, "(.*)" given./';
2121

22-
yield 'null' => [new NotBlank(), null, $exception, $exceptionMessage];
23-
yield 'false' => [new NotBlank(), false, $exception, $exceptionMessage];
24-
yield 'blank string' => [new NotBlank(), '', $exception, $exceptionMessage];
25-
yield 'blank array' => [new NotBlank(), [], $exception, $exceptionMessage];
22+
yield 'null' => [new NotBlank(), null, $exception, $message];
23+
yield 'false' => [new NotBlank(), false, $exception, $message];
24+
yield 'blank string' => [new NotBlank(), '', $exception, $message];
25+
yield 'blank array' => [new NotBlank(), [], $exception, $message];
2626

27-
yield 'normalizer whitespace' => [new NotBlank(normalizer: 'trim'), ' ', $exception, $exceptionMessage];
28-
yield 'normalizer whitespace function' => [new NotBlank(normalizer: fn($value) => trim($value)), ' ', $exception, $exceptionMessage];
27+
yield 'normalizer whitespace' => [new NotBlank(normalizer: 'trim'), ' ', $exception, $message];
28+
yield 'normalizer whitespace function' => [new NotBlank(normalizer: fn($value) => trim($value)), ' ', $exception, $message];
2929
}
3030

3131
public static function provideRuleSuccessConditionData(): \Generator

0 commit comments

Comments
 (0)