1--TEST--
2Test DOM\Element::closest() method: invalid selector
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = DOM\XMLDocument::createFromString("<root/>");
9
10try {
11  var_dump($dom->documentElement->closest('@invalid'));
12} catch (DOMException $e) {
13  echo $e->getMessage();
14}
15
16?>
17--EXPECT--
18Invalid selector (Selectors. Unexpected token: @invalid)
19