File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / mysqli / tests / mysqli_constants_categories.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:58 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Constants exported by ext/mysqli - checking category - PHP bug not mysqli bug (check from time to time)
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifemb.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!";
?>
--EXPECTF--
done!

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