1--TEST-- 2Basic UConverter::getStandards() usage 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7function assertTrue($assertion, $msg) { 8 if (!$assertion) var_dump($msg); 9} 10$standards = UConverter::getStandards(); 11assertTrue(is_array($standards), '$standards must be an array'); 12assertTrue(count($standards) > 0, '$standards must not be empty'); 13assertTrue($standards === array_values($standards), '$standards keys must be numeric'); 14assertTrue($standards === array_unique($standards), '$standards values must be unique'); 15assertTrue(array_reduce($standards, function($carry, $item) { return $carry && is_string($item); }, true), '$standards values must be strings'); 16?> 17===DONE=== 18--EXPECT-- 19===DONE=== 20