Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function testPregSplitThrowsOnError() : void |
||
41 | { |
||
42 | //We need to disable the error handler for phpunit... because we expect some errors here |
||
43 | $this->errorHandler = set_error_handler(static function () : void { |
||
44 | }, E_WARNING); |
||
45 | |||
46 | $this->expectException(PcreException::class); |
||
47 | Utils::pregSplit('~InvalidRegular)Expression~', 'some word'); |
||
48 | } |
||
49 | } |
||
50 |