IntlTestHelper::requireFullIntl()

static requireFullIntl(PHPUnit_Framework_TestCase $testCase) Should be called before tests that require a feature-complete intl implementation. Parameters PHPUnit_Framework_TestCase $testCase

IntlTestHelper::require64Bit()

static require64Bit(PHPUnit_Framework_TestCase $testCase) Skips the test unless the current system has a 64bit architecture. Parameters PHPUnit_Framework_TestCase $testCase

IntlTestHelper::require32Bit()

static require32Bit(PHPUnit_Framework_TestCase $testCase) Skips the test unless the current system has a 32bit architecture. Parameters PHPUnit_Framework_TestCase $testCase

IntlTestHelper

class IntlTestHelper Helper class for preparing test cases that rely on the Intl component. Any test that tests functionality relying on either the intl classes or the resource bundle data should call either of the methods {@link requireIntl()} or {@link requireFullIntl()}. Calling {@link requireFullIntl()} is only necessary if you use functionality in the test that is not provided by the stub intl implementation. Methods static requireIntl(PHPUnit_Framework_TestCase $testCase) Should be

IntlGlobals::setError()

static setError(int $code, string $message = '') Sets the current error. Parameters int $code One of the error constants in this class string $message The ICU class error message Exceptions InvalidArgumentException If the code is not one of the error constants in this class

IntlGlobals::isFailure()

static bool isFailure(int $errorCode) Returns whether the error code indicates a failure. Parameters int $errorCode The error code returned by IntlGlobals::getErrorCode() Return Value bool

IntlGlobals::getErrorName()

static string getErrorName(int $code) Returns the symbolic name for a given error code. Parameters int $code The error code returned by IntlGlobals::getErrorCode() Return Value string

IntlGlobals::getErrorMessage()

static string getErrorMessage() Returns the error message of the last operation. Returns "UZEROERROR" if no error occurred. Return Value string

IntlGlobals::getErrorCode()

static int getErrorCode() Returns the error code of the last operation. Returns IntlGlobals::UZEROERROR if no error occurred. Return Value int

IntlGlobals

class IntlGlobals Provides fake static versions of the global functions in the intl extension. Constants U_ZERO_ERROR Indicates that no error occurred. U_ILLEGAL_ARGUMENT_ERROR Indicates that an invalid argument was passed. U_PARSE_ERROR Indicates that the parse() operation failed. Methods static bool isFailure(int $errorCode) Returns whether the error code indicates a failure. static int getErrorCode() Returns the error code of the last operation. static string getE