IntlTestHelper

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(TestCase $testCase, $minimumIcuVersion = null)

Should be called before tests that work fine with the stub implementation.

static requireFullIntl(TestCase $testCase, $minimumIcuVersion = null)

Should be called before tests that require a feature-complete intl implementation.登录查看完整内容