diff options
Diffstat (limited to 'ext/dom/tests/DOMDocumentType_notations_error_001.phpt')
-rw-r--r-- | ext/dom/tests/DOMDocumentType_notations_error_001.phpt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/dom/tests/DOMDocumentType_notations_error_001.phpt b/ext/dom/tests/DOMDocumentType_notations_error_001.phpt index a18f47f3f1..53b8c9c0d1 100644 --- a/ext/dom/tests/DOMDocumentType_notations_error_001.phpt +++ b/ext/dom/tests/DOMDocumentType_notations_error_001.phpt @@ -8,7 +8,11 @@ Eric Lee Stewart <ericleestewart@gmail.com> --FILE-- <?php $doctype = new DOMDocumentType(); -$notations = $doctype->notations; +try { + $notations = $doctype->notations; +} catch (DOMException $exception) { + echo $exception->getMessage() . "\n"; +} ?> ---EXPECTF-- -Warning: main(): Invalid State Error in %s on line %d +--EXPECT-- +Invalid State Error |