summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMAttr_value_basic_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/tests/DOMAttr_value_basic_002.phpt')
-rw-r--r--ext/dom/tests/DOMAttr_value_basic_002.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/dom/tests/DOMAttr_value_basic_002.phpt b/ext/dom/tests/DOMAttr_value_basic_002.phpt
new file mode 100644
index 0000000..384a9ca
--- /dev/null
+++ b/ext/dom/tests/DOMAttr_value_basic_002.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Write non-string $value property
+--CREDITS--
+Eric Berg <ehberg@gmail.com>
+# TestFest Atlanta 2009-05-14
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+$attr = new DOMAttr('category');
+$attr->value = 1;
+print $attr->value;
+?>
+--EXPECTF--
+1