Annotation of embedaddon/php/ext/intl/tests/transliterator_create_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Transliterator::create (error)
                      3: --SKIPIF--
                      4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: ini_set("intl.error_level", E_WARNING);
                      9: Transliterator::create("inexistant id");
                     10: echo intl_get_error_message(), "\n";
                     11: Transliterator::create("bad UTF-8 \x8F");
                     12: echo intl_get_error_message(), "\n";
                     13: 
                     14: echo "Done.\n";
                     15: --EXPECTF--
                     16: Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistant id" in %s on line %d
                     17: transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID
                     18: 
                     19: Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d
                     20: String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
                     21: Done.

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