summaryrefslogtreecommitdiff
path: root/ext/dom/tests/bug79968.phpt
blob: 45107351a4eb07107694a813862aec8debfe2add (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
dom: Bug #79968 - Crash when calling before without valid hierachy
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

$cdata = new DOMText;

try {
    $cdata->before("string");
} catch (DOMException $e) {
    echo $e->getMessage();
}
?>
--EXPECT--
Hierarchy Request Error