Annotation of embedaddon/php/ext/mysqli/tests/mysqli_constants_categories.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Constants exported by ext/mysqli - checking category - PHP bug not mysqli bug (check from time to time)
                      3: --SKIPIF--
                      4: <?php
                      5: require_once('skipif.inc');
                      6: require_once('skipifemb.inc');
                      7: ?>
                      8: --FILE--
                      9: <?php
                     10:        $constants = get_defined_constants(true);
                     11: 
                     12:        foreach ($constants as $group => $consts) {
                     13:                foreach ($consts as $name => $value) {
                     14:                        if (stristr($name, 'mysqli')) {
                     15:                                if ('mysqli' != $group)
                     16:                                printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
                     17:                        }
                     18:                }
                     19:        }
                     20: 
                     21:        print "done!";
                     22: ?>
                     23: --EXPECTF--
                     24: done!

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