diff options
author | marcosptf <marcosptf@yahoo.com.br> | 2015-08-09 07:28:17 -0300 |
---|---|---|
committer | marcosptf <marcosptf@yahoo.com.br> | 2015-08-09 07:28:17 -0300 |
commit | 8fa0ef538ebc6927173ef0d90807a470b5c15932 (patch) | |
tree | 5b1e035e29232546f074a0082102efd804563338 /ext/enchant | |
parent | 158aca848a0a3978e433733140c66006481db14f (diff) | |
download | php-git-8fa0ef538ebc6927173ef0d90807a470b5c15932.tar.gz |
Update broker_free.phpt
Diffstat (limited to 'ext/enchant')
-rw-r--r-- | ext/enchant/tests/broker_free.phpt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/enchant/tests/broker_free.phpt b/ext/enchant/tests/broker_free.phpt index d00c22a974..ad7000d14f 100644 --- a/ext/enchant/tests/broker_free.phpt +++ b/ext/enchant/tests/broker_free.phpt @@ -1,18 +1,19 @@ --TEST-- enchant_broker_free() function --SKIPIF-- -<?php +<?php if(!extension_loaded('enchant')) die('skip, enchant not loader'); - - ?> +if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} +?> --FILE-- <?php $broker = enchant_broker_init(); if (is_resource($broker)) { - echo "OK\n"; - enchant_broker_free($broker); -} else { - exit("init failed\n"); + echo "OK\n"; + enchant_broker_free($broker); + +} else { + exit("init failed\n"); } echo "OK\n"; ?> |