]> granicus.if.org Git - php/commitdiff
Let them say why they are skipped
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 21 Oct 2002 10:35:02 +0000 (10:35 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 21 Oct 2002 10:35:02 +0000 (10:35 +0000)
ext/iconv/tests/001.phpt
ext/iconv/tests/bug16069.phpt
ext/iconv/tests/translit-failure.phpt
ext/iconv/tests/translit-utf8.phpt

index a6f41199ae89f40c39b835d7ecce28c731c7e1bf..fde65538563e8b99b35639f299d631ded926f032 100644 (file)
@@ -8,11 +8,10 @@ iconv test
 <?php
 echo "iconv extension is available\n";
 $test = "æøå";
-printf("ISO-8859-1: %s\nUTF-8: %s\n",
-       $test, iconv("ISO-8859-1", "UTF-8", $test));
-
+var_dump("ISO-8859-1: $test");
+var_dump("UTF-8: ".iconv( "ISO-8859-1", "UTF-8", $test ) );
 ?>
 --EXPECT--
 iconv extension is available
-ISO-8859-1: æøå
-UTF-8: æøå
+string(15) "ISO-8859-1: æøå"
+string(13) "UTF-8: æøå"
index 9088ce8d4e1b0b00350bef3af2bce1460593fb9c..7623ba0f5ff76e0111b76d55f6ee1e139bfec0b1 100644 (file)
@@ -1,7 +1,12 @@
 --TEST--
 Bug #16069
 --SKIPIF--
-<?php include( 'skipif.inc' ); if( @iconv('CP932', 'EUC-JP//TRANSLIT', "\x87\x6d") == '' ) die("skip\n"); ?>
+<?php
+include( 'skipif.inc' );
+if (@iconv('CP932', 'EUC-JP//TRANSLIT', "\x87\x6d")=='') {
+       die("skip  CP932 translit not available\n");
+}
+?>
 --POST--
 --GET--
 --FILE--
index 93379d98bc363481029ec51c939f388b18117e2e..2bd4a61b015421162d5ee3bfa279d02d4997cf47 100644 (file)
@@ -3,7 +3,7 @@ Translit failure
 --SKIPIF--
 <?php
 include('skipif.inc');
-( ICONV_IMPL != "libiconv" ) and die("skip"); 
+( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\""); 
 ?>
 --FILE--
 <?php
@@ -15,7 +15,7 @@ include('skipif.inc');
 
 set_time_limit(5);
 /*
- * The bug (fixed in libiconv 1.8) was confirmed that iconv goes into a
+ * The bug (fixed in libiconv 1.8) was confirmed that iconv goes into an
  * infinite loop when ASCII//TRANSLIT is performed. We should stop it in
  * some time.
  */
index 537919c363934ee6f05f282b491e198aa5e6079c..bd9903413ea81b264cfb2ddad0b55ec0ba09b375 100644 (file)
@@ -3,7 +3,7 @@ Translit UTF-8 quotes
 --SKIPIF--
 <?php
 include('skipif.inc');
-( ICONV_IMPL != "libiconv" ) and die("skip"); 
+( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\""); 
 ?>
 --FILE--
 <?php include('translit-utf8.inc'); ?>