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

19 lines
425 B
PHP

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