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