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