diff --git a/ext/dom/tests/xpath_evaluate_basic_types.phpt b/ext/dom/tests/xpath_evaluate_basic_types.phpt new file mode 100644 index 00000000000..fcb07d5949c --- /dev/null +++ b/ext/dom/tests/xpath_evaluate_basic_types.phpt @@ -0,0 +1,17 @@ +--TEST-- +XPath: basic types evaluation +--EXTENSIONS-- +dom +--FILE-- +loadHTML('

foo

'); +$xpath = new DOMXpath($dom); +var_dump($xpath->evaluate("count(//p) > 0")); +var_dump($xpath->evaluate("string(//p/@align)")); + +?> +--EXPECT-- +bool(true) +string(6) "center"