From: Christian Stocker Date: Sun, 26 Oct 2003 19:35:08 +0000 (+0000) Subject: fix test (validation returns a warning, if xml is not valid) X-Git-Tag: RELEASE_2_0_0RC1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70f75fff893f5390e73726f0dc138a6f38f5d505;p=php fix test (validation returns a warning, if xml is not valid) --- diff --git a/ext/simplexml/tests/bug25756.phpt b/ext/simplexml/tests/bug25756.phpt index 99d88dcea0..7584376b4e 100644 --- a/ext/simplexml/tests/bug25756.phpt +++ b/ext/simplexml/tests/bug25756.phpt @@ -5,14 +5,14 @@ Bug #25756 (validate_schema_file() broken) $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 @@ object(simplexml_element)#%d (1) { } } } + +Warning: Element quantity: failed to validate basic type decimal in %s on line %d bool(false)