cvs: php-src(PHP_5_3) /ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt
DOMCDATASection_construct_error_001.phpt DOMCharacterData_data_error_002.phpt
| From: | Eric Stewart | Date: | Sat, 23 May 2009 01:42:37 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/dom/tests DOMAttr_name_basic_001.phpt DOMAttr_ownerElement_error_001.phpt DOMAttr_value_basic_002.phpt DOMCDATASection_construct_error_001.phpt DOMCharacterData_data_error_002.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58125@lists.php.net to get a copy of this message | ||
ericstewart Sat May 23 01:42:37 2009 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/dom/tests DOMAttr_name_basic_001.phpt
DOMAttr_ownerElement_error_001.phpt
DOMAttr_value_basic_002.phpt
DOMCDATASection_construct_error_001.phpt
DOMCharacterData_data_error_002.phpt
Log:
New test: DOMAttr read $name property.
New test: DOMAttr read $ownerElement with null parent.
New test: DOMAttr write non-string $value property
New test: DOMCDATASection __construct() with no arguments.
New test: DOMCharacterData - Invalid State Error when getting data out of content.
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt?view=markup&rev=1.1
Index: php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt
+++ php-src/ext/dom/tests/DOMAttr_name_basic_001.phpt
--TEST--
DOMAttr read $name property.
--CREDITS--
Nic Rosental <nicrosental@gmail.com>
# TestFest Atlanta 2009-05-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$attr = new DOMAttr('category', 'books');
print $attr->name;
?>
--EXPECT--
category
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt?view=markup&rev=1.1
Index: php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt
+++ php-src/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt
--TEST--
Read $ownerElement with null parent.
--CREDITS--
Travis Pew
# TestFest Atlanta 2009-05-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$document = new DOMDocument;
$root = $document->createElement('root');
$document->appendChild($root);
$attr = $root->setAttribute('category', 'books');
$document->removeChild($root);
$root = null;
var_dump($attr->ownerElement);
?>
--EXPECTF--
Warning: Couldn't fetch DOMAttr. Node no longer exists in %s on line %d
Notice: Undefined property: DOMAttr::$ownerElement in %s on line %d
NULL
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt?view=markup&rev=1.1
Index: php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt
+++ php-src/ext/dom/tests/DOMAttr_value_basic_002.phpt
--TEST--
Write non-string $value property
--CREDIT--
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
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt?view=markup&rev=1.1
Index: php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
+++ php-src/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
--TEST--
__construct() with no arguments.
--CREDITS--
Nic Rosental nicrosental@gmail.com
# TestFest Atlanta 2009-5-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
try
{
$section = new DOMCDataSection();
}
catch (Exception $e)
{
echo $e->getMessage();
}
?>
--EXPECT--
DOMCdataSection::__construct() expects exactly 1 parameter, 0 given
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt?view=markup&rev=1.1
Index: php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt
+++ php-src/ext/dom/tests/DOMCharacterData_data_error_002.phpt
--TEST--
Invalid State Error when getting data on DOMCharacterData out of content.
--CREDIT--
Eric Berg <ehberg@gmail.com>
# TestFest Atlanta 2009-05-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$character_data = new DOMCharacterData();
print $character_data->data;
?>
--EXPECTF--
Warning: main(): Invalid State Error in %s on line %d