mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Another small test for iconv transliteration, from GNU libiconv testkit
This commit is contained in:
parent
38b52fd33f
commit
641f346cf6
18
ext/iconv/tests/translit-failure.phpt
Normal file
18
ext/iconv/tests/translit-failure.phpt
Normal file
@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
Translit failture
|
||||
--SKIPIF--
|
||||
<?php include('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
// Should be ok.
|
||||
// Content from file is from libiconv testkit. Tested both
|
||||
// with a string as an implode, no difference.
|
||||
// if at some point internal encoding changes, set correct one
|
||||
// in INI section or use file 'TranslitFail1.ISO-8859-1'.
|
||||
|
||||
$test = 'Écrit par %s.';
|
||||
if (!iconv("ISO-8859-1", "ASCII//TRANSLIT", $test))
|
||||
echo 'wrong is right';
|
||||
?>
|
||||
--EXPECT--
|
||||
wrong is right
|
Loading…
Reference in New Issue
Block a user