felipe Thu Feb 7 13:18:58 2008 UTC
Modified files:
/php-src/ext/standard/tests/general_functions
parse_ini_booleans.phpt
parse_ini_file.phpt
Log:
Added UEXPECTF
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/parse_ini_booleans.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/general_functions/parse_ini_booleans.phpt
diff -u
php-src/ext/standard/tests/general_functions/parse_ini_booleans.phpt:1.2
php-src/ext/standard/tests/general_functions/parse_ini_booleans.phpt:1.3
--- php-src/ext/standard/tests/general_functions/parse_ini_booleans.phpt:1.2
Mon Feb 4 20:45:16 2008
+++ php-src/ext/standard/tests/general_functions/parse_ini_booleans.phpt
Thu Feb 7 13:18:58 2008
@@ -67,3 +67,60 @@
}
}
Done.
+--UEXPECTF--
+array(3) {
+ [u"error_reporting values"]=>
+ array(6) {
+ [u"foo"]=>
+ unicode(6) "8191 8"
+ [u"error_reporting"]=>
+ unicode(4) "8191"
+ [u"error_reporting1"]=>
+ unicode(4) "4177"
+ [u"error_reporting2"]=>
+ unicode(4) "8183"
+ [u"error_reporting3"]=>
+ unicode(4) "8183"
+ [u"error_reporting4"]=>
+ unicode(4) "8183"
+ }
+ [u"true or false"]=>
+ array(8) {
+ [u"bool_true"]=>
+ unicode(1) "1"
+ [u"bool_yes"]=>
+ unicode(1) "1"
+ [u"bool_on"]=>
+ unicode(1) "1"
+ [u"bool_false"]=>
+ unicode(0) ""
+ [u"bool_off"]=>
+ unicode(0) ""
+ [u"bool_no"]=>
+ unicode(0) ""
+ [u"bool_none"]=>
+ unicode(0) ""
+ [u"bool_null"]=>
+ unicode(0) ""
+ }
+ [u"strings"]=>
+ array(8) {
+ [u"string_true"]=>
+ unicode(4) "true"
+ [u"string_yes"]=>
+ unicode(4) " yes"
+ [u"string_on"]=>
+ unicode(5) " on "
+ [u"string_false"]=>
+ unicode(5) "false"
+ [u"string_off"]=>
+ unicode(4) "Off "
+ [u"string_no"]=>
+ unicode(4) "No "
+ [u"string_none"]=>
+ unicode(5) " NoNe"
+ [u"string_null"]=>
+ unicode(4) "NULl"
+ }
+}
+Done.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/parse_ini_file.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/general_functions/parse_ini_file.phpt
diff -u php-src/ext/standard/tests/general_functions/parse_ini_file.phpt:1.3
php-src/ext/standard/tests/general_functions/parse_ini_file.phpt:1.4
--- php-src/ext/standard/tests/general_functions/parse_ini_file.phpt:1.3
Fri Sep 28 02:04:28 2007
+++ php-src/ext/standard/tests/general_functions/parse_ini_file.phpt Thu Feb
7 13:18:58 2008
@@ -171,3 +171,82 @@
string(5) "test4"
}
Done
+--UEXPECTF--
+Warning: parse_ini_file() expects at least 1 parameter, 0 given in
%sparse_ini_file.php on line 6
+bool(false)
+
+Warning: parse_ini_file() expects at most 3 parameters, 4 given in
%sparse_ini_file.php on line 7
+bool(false)
+
+Warning: parse_ini_file(%sparse_ini_file.dat): failed to open stream: No such
file or directory in %sparse_ini_file.php on line 8
+array(0) {
+}
+
+Warning: parse_ini_file(%sparse_ini_file.dat): failed to open stream: No such
file or directory in %sparse_ini_file.php on line 9
+array(0) {
+}
+array(1) {
+ [u"test"]=>
+ unicode(0) ""
+}
+
+Warning: syntax error, unexpected '=' in %sparse_ini_file.dat on line 2
+ in %sparse_ini_file.php on line 20
+array(1) {
+ [u"test"]=>
+ unicode(0) ""
+}
+
+Warning: syntax error, unexpected '=' in %sparse_ini_file.dat on line 2
+ in %sparse_ini_file.php on line 26
+array(1) {
+ [u"test"]=>
+ unicode(4) "test"
+}
+array(1) {
+ [u"test"]=>
+ unicode(8) "new
+line"
+}
+array(1) {
+ [u"test"]=>
+ unicode(16) "test const value"
+}
+array(1) {
+ [u"section"]=>
+ array(1) {
+ [u"test"]=>
+ unicode(5) "hello"
+ }
+}
+array(1) {
+ [u"test"]=>
+ unicode(5) "hello"
+}
+array(1) {
+ [u"section.test"]=>
+ unicode(5) "hello"
+}
+array(1) {
+ [u"section"]=>
+ array(1) {
+ [u"section.test"]=>
+ unicode(5) "hello"
+ }
+}
+array(1) {
+ [u"section"]=>
+ array(1) {
+ [1]=>
+ unicode(1) "2"
+ }
+}
+array(1) {
+ [1]=>
+ unicode(1) "2"
+}
+array(1) {
+ [u"test"]=>
+ unicode(5) "test4"
+}
+Done
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php