Annotation of embedaddon/php/ext/gettext/tests/gettext_textdomain-retval.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Check if textdomain() returns the new domain
        !             3: --SKIPIF--
        !             4: <?php 
        !             5:        if (!extension_loaded("gettext")) {
        !             6:                die("skip\n");
        !             7:        }
        !             8:        if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
        !             9:                die("skip en_US.UTF-8 locale not supported.");
        !            10:        }
        !            11: ?>
        !            12: --FILE--
        !            13: <?php
        !            14: 
        !            15: chdir(dirname(__FILE__));
        !            16: setlocale(LC_ALL, 'en_US.UTF-8');
        !            17: bindtextdomain ("messages", "./locale");
        !            18: echo textdomain('test'), "\n";
        !            19: echo textdomain(null), "\n";
        !            20: echo textdomain('foo'), "\n";
        !            21: ?>
        !            22: --EXPECT--
        !            23: 
        !            24: test
        !            25: test
        !            26: foo
        !            27: --CREDITS--
        !            28: Christian Weiske, cweiske@php.net
        !            29: PHP Testfest Berlin 2009-05-09

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