|
4 | 4 |
|
5 | 5 | use PHPUnit\Framework\Assert as PHPUnit; |
6 | 6 |
|
7 | | -trait StringAssertions |
| 7 | +trait StringLengthAssertions |
8 | 8 | { |
9 | | - public static function assertLength(int $length, $actual): void |
| 9 | + public static function assertSame(int $length, $actual): void |
10 | 10 | { |
11 | 11 | PHPUnit::assertIsString($actual); |
12 | 12 | PHPUnit::assertSame($length, mb_strlen($actual)); |
13 | 13 | } |
14 | 14 |
|
15 | | - public static function assertNotLength(int $length, $actual): void |
| 15 | + public static function assertNotSame(int $length, $actual): void |
16 | 16 | { |
17 | 17 | PHPUnit::assertIsString($actual); |
18 | 18 | PHPUnit::assertNotSame($length, mb_strlen($actual)); |
19 | 19 | } |
20 | 20 |
|
21 | | - public static function assertLengthLessThan(int $length, $actual): void |
| 21 | + public static function assertLessThan(int $length, $actual): void |
22 | 22 | { |
23 | 23 | PHPUnit::assertIsString($actual); |
24 | 24 | PHPUnit::assertLessThan($length, mb_strlen($actual)); |
25 | 25 | } |
26 | 26 |
|
27 | | - public static function assertLengthLessThanOrEqual(int $length, $actual): void |
| 27 | + public static function assertLessThanOrEqual(int $length, $actual): void |
28 | 28 | { |
29 | 29 | PHPUnit::assertIsString($actual); |
30 | 30 | PHPUnit::assertLessThanOrEqual($length, mb_strlen($actual)); |
31 | 31 | } |
32 | 32 |
|
33 | | - public static function assertLengthGreaterThan(int $length, $actual): void |
| 33 | + public static function assertGreaterThan(int $length, $actual): void |
34 | 34 | { |
35 | 35 | PHPUnit::assertIsString($actual); |
36 | 36 | PHPUnit::assertGreaterThan($length, mb_strlen($actual)); |
37 | 37 | } |
38 | 38 |
|
39 | | - public static function assertLengtGreaterThanOrEqual(int $length, $actual): void |
| 39 | + public static function assertGreaterThanOrEqual(int $length, $actual): void |
40 | 40 | { |
41 | 41 | PHPUnit::assertIsString($actual); |
42 | 42 | PHPUnit::assertGreaterThanOrEqual($length, mb_strlen($actual)); |
|
0 commit comments