chregu Sun Oct 26 14:35:08 2003 EDT Modified files: /php-src/ext/simplexml/tests bug25756.phpt Log: fix test (validation returns a warning, if xml is not valid) Index: php-src/ext/simplexml/tests/bug25756.phpt diff -u php-src/ext/simplexml/tests/bug25756.phpt:1.3 php-src/ext/simplexml/tests/bug25756.phpt:1.4 --- php-src/ext/simplexml/tests/bug25756.phpt:1.3 Sat Oct 25 21:17:51 2003 +++ php-src/ext/simplexml/tests/bug25756.phpt Sun Oct 26 14:35:08 2003 @@ -5,14 +5,14 @@ $dir = dirname(__FILE__); $valid_schema_file = "$dir/bug25756.xsd"; $invalid_schema_file = "$dir/bug25756_1.xml"; -$xml_file_1 = "$dir/bug25756_1.xml"; -$xml_file_2 = "$dir/bug25756_2.xml"; +$xml_file_valid = "$dir/bug25756_1.xml"; +$xml_file_invalid = "$dir/bug25756_2.xml"; -$s = simplexml_load_file($xml_file_1); +$s = simplexml_load_file($xml_file_valid); var_dump($s); var_dump($s->validate_schema_file($valid_schema_file)); var_dump($s->validate_schema_file($invalid_schema_file)); -$s = simplexml_load_file($xml_file_2); +$s = simplexml_load_file($xml_file_invalid); var_dump($s); var_dump($s->validate_schema_file($valid_schema_file)); ?> @@ -65,4 +65,6 @@ } } } + +Warning: Element quantity: failed to validate basic type decimal in %s on line %d bool(false)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php