mediatekformation

IntlTestHelper
in package

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 or . Calling is only necessary if you use functionality in the test that is not provided by the stub intl implementation.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

require32Bit()  : mixed
Skips the test unless the current system has a 32bit architecture.
require64Bit()  : mixed
Skips the test unless the current system has a 64bit architecture.
requireFullIntl()  : mixed
Should be called before tests that require a feature-complete intl implementation.
requireIntl()  : mixed
Should be called before tests that work fine with the stub implementation.
__construct()  : mixed
Must not be instantiated.

Methods

require32Bit()

Skips the test unless the current system has a 32bit architecture.

public static require32Bit(TestCase $testCase) : mixed
Parameters
$testCase : TestCase
Return values
mixed

require64Bit()

Skips the test unless the current system has a 64bit architecture.

public static require64Bit(TestCase $testCase) : mixed
Parameters
$testCase : TestCase
Return values
mixed

requireFullIntl()

Should be called before tests that require a feature-complete intl implementation.

public static requireFullIntl(TestCase $testCase[, mixed $minimumIcuVersion = null ]) : mixed
Parameters
$testCase : TestCase
$minimumIcuVersion : mixed = null
Return values
mixed

requireIntl()

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

public static requireIntl(TestCase $testCase[, mixed $minimumIcuVersion = null ]) : mixed
Parameters
$testCase : TestCase
$minimumIcuVersion : mixed = null
Return values
mixed

__construct()

Must not be instantiated.

private __construct() : mixed
Return values
mixed

Search results