| 1 | <?php |
||
| 9 | final class StringExpectations extends ScalarExpectations |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * StringExpectations constructor. |
||
| 13 | * |
||
| 14 | * @param mixed $value |
||
| 15 | */ |
||
| 16 | 3 | public function __construct($value) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $value |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 3 | private function isString($value): bool |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param int $length |
||
| 35 | * |
||
| 36 | * @return StringExpectations |
||
| 37 | */ |
||
| 38 | 1 | public function hasLength(int $length): self |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $pattern |
||
| 45 | * |
||
| 46 | * @return StringExpectations |
||
| 47 | */ |
||
| 48 | 1 | public function match(string $pattern): self |
|
| 52 | } |
||
| 53 |