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