Annotation of embedaddon/php/ext/enchant/tests/broker_describe.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: enchant_broker_describe() function
! 3: --SKIPIF--
! 4: <?php
! 5: if(!extension_loaded('enchant')) die('skip, enchant not loader');
! 6:
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: $broker = enchant_broker_init();
! 11:
! 12: if(!$broker) exit("failed, broker_init failure\n");
! 13:
! 14: $provides = enchant_broker_describe($broker);
! 15:
! 16: if (is_array($provides)) {
! 17: foreach ($provides as $backend) {
! 18: if (!(isset($backend['name']) && isset($backend['desc']) && isset($backend['file']))) {
! 19: exit("failed\n");
! 20: }
! 21: }
! 22: exit("OK\n");
! 23: } else {
! 24: echo "failed";
! 25: }
! 26: ?>
! 27: --EXPECTF--
! 28: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>