Annotation of embedaddon/php/ext/tidy/tests/022.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: tidy_repair_*() and invalid parameters
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("tidy")) print "skip"; ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: $l = 1;
                      9: $s = "";
                     10: $a = array();
                     11: 
                     12: tidy_repair_string($s, $l, $l, $l);
                     13: tidy_repair_string($s, $s, $s, $s);
                     14: tidy_repair_string($l, $l, $l ,$l);
                     15: tidy_repair_string($a, $a, $a, $a);
                     16: 
                     17: tidy_repair_file($s, $l, $l, $l);
                     18: tidy_repair_file($s, $s, $s, $s);
                     19: tidy_repair_file($l, $l, $l ,$l);
                     20: tidy_repair_file($a, $a, $a, $a);
                     21: 
                     22: echo "Done\n";
                     23: ?>
                     24: --EXPECTF--    
                     25: Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d
                     26: 
                     27: Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d
                     28: 
                     29: Warning: tidy_repair_string(): Could not load configuration file '' in %s on line %d
                     30: 
                     31: Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d
                     32: 
                     33: Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d
                     34: 
                     35: Warning: tidy_repair_string() expects parameter 1 to be string, array given in %s on line %d
                     36: 
                     37: Warning: tidy_repair_file(): Filename cannot be empty in %s on line %d
                     38: 
                     39: Warning: tidy_repair_file(): Filename cannot be empty in %s on line %d
                     40: 
                     41: Warning: tidy_repair_file() expects parameter 1 to be string, array given in %s on line %d
                     42: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>