summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_constants_categories.phpt
blob: 29291fe203e71fa7db9b8d1bca644ea5a113ba14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Constants exported by ext/mysqli - checking category - PHP bug not mysqli bug (check from time to time)
--SKIPIF--
<?php
require_once('skipif.inc');
?>
--FILE--
<?php
    $constants = get_defined_constants(true);

    foreach ($constants as $group => $consts) {
        foreach ($consts as $name => $value) {
            if (stristr($name, 'mysqli')) {
                if ('mysqli' != $group)
                printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
            }
        }
    }

    print "done!";
?>
--EXPECT--
done!