Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
ExpressionContainsLookAheads | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | namespace Apie\RegexValueObjects\Exceptions; |
3 | |
4 | use Apie\Core\Exceptions\ApieException; |
5 | use Apie\Core\ValueObjects\Utils; |
6 | |
7 | class ExpressionContainsLookAheads extends ApieException |
8 | { |
9 | public function __construct(mixed $input) |
10 | { |
11 | parent::__construct( |
12 | sprintf( |
13 | '%s is a valid regular expression but contains look-aheads and/or look-behinds', |
14 | Utils::displayMixedAsString($input) |
15 | ) |
16 | ); |
17 | } |
18 | } |