cvs: php4 /ext/iconv/tests 001.phpt 002.inc 002.phpt skipif.inc

From: Date: Sun, 03 Feb 2002 02:18:30 +0000
Subject: cvs: php4 /ext/iconv/tests 001.phpt 002.inc 002.phpt skipif.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9249@lists.php.net to get a copy of this message
yohgaki Sat Feb 2 21:18:30 2002 EDT Added files: /php4/ext/iconv/tests 002.inc 002.phpt skipif.inc Modified files: /php4/ext/iconv/tests 001.phpt Log: Added UCS4 test Index: php4/ext/iconv/tests/001.phpt diff -u php4/ext/iconv/tests/001.phpt:1.3 php4/ext/iconv/tests/001.phpt:1.4 --- php4/ext/iconv/tests/001.phpt:1.3 Wed Oct 10 20:41:15 2001 +++ php4/ext/iconv/tests/001.phpt Sat Feb 2 21:18:30 2002 @@ -1,7 +1,7 @@ --TEST-- iconv test --SKIPIF-- -<?php if (!extension_loaded("iconv")) print "skip"; ?> +<?php include('skipif.inc'); ?> --POST-- --GET-- --FILE-- Index: php4/ext/iconv/tests/002.inc +++ php4/ext/iconv/tests/002.inc <?php /* Expected output: &#97;&#98;&#99;&#100; abcd */ $s = unpack("V*", iconv("ascii","UCS-4LE", "abcd")); foreach($s as $c) { print "&#$c;"; } print "\n"; $s = pack("NNNN", 97, 98, 99, 100); $q = iconv("UCS-4BE", "ascii", $s); print $q; print "\n"; ?> Index: php4/ext/iconv/tests/002.phpt +++ php4/ext/iconv/tests/002.phpt --TEST-- iconv test --SKIPIF-- <?php include('skipif.inc'); ?> --POST-- --GET-- --FILE-- <?php include('002.inc'); ?> --EXPECT-- Expected output: &#97;&#98;&#99;&#100; abcd Index: php4/ext/iconv/tests/skipif.inc +++ php4/ext/iconv/tests/skipif.inc <?php // This script prints "skip" if condition does not meet. if (!extension_loaded("iconv") && ini_get("enable_dl")) { $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so"; @dl("iconv$dlext"); } if (!extension_loaded("iconv")) { die("skip\n"); } ?>

« previous php.cvs (#9249) next »