1--TEST-- 2resource enchant_broker_request_pwl_dict(resource $broker, string $filename); function 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> 5--SKIPIF-- 6<?php 7if(!extension_loaded('enchant')) die('skip, enchant not loader'); 8if(!is_object(enchant_broker_init())) {die("skip, resource dont load\n");} 9?> 10--FILE-- 11<?php 12$broker = enchant_broker_init(); 13$pathPwlDict = __DIR__ . "/enchant_broker_request_pwl_dict.pwl"; 14 15if (is_object($broker)) { 16 echo("OK\n"); 17 $requestDict = enchant_broker_request_pwl_dict($broker, $pathPwlDict); 18 19 if (is_object($requestDict)) { 20 echo("OK\n"); 21 $dictdescribe = enchant_dict_describe($requestDict); 22 23 if ($pathPwlDict === $dictdescribe['file']) { 24 echo("OK\n"); 25 } else { 26 echo("broker dict describe is not a resource failed\n"); 27 } 28 } else { 29 echo("dict broker request pwl has failed\n"); 30 } 31} else { 32 echo("broker is not a resource; failed;\n"); 33} 34echo "OK\n"; 35?> 36--EXPECT-- 37OK 38OK 39OK 40OK 41