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