1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Files
archived-php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt
2021-03-16 20:22:32 +01:00

19 lines
412 B
PHP

--TEST--
Invalid State Error when getting data on DOMCharacterData out of content.
--CREDITS--
Eric Berg <ehberg@gmail.com>
# TestFest Atlanta 2009-05-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$character_data = new DOMCharacterData();
try {
print $character_data->data;
} catch (DOMException $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
Invalid State Error