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 called before tests that work fine with the stub implementation.

static requireFullIntl(PHPUnit_Framework_TestCase $testCase)

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

static require32Bit(PHPUnit_Framework_TestCase $testCase)

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

static require64Bit(PHPUnit_Framework_TestCase $testCase)

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

Details

static requireIntl(PHPUnit_Framework_TestCase $testCase)

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

Parameters

PHPUnit_Framework_TestCase $testCase

static requireFullIntl(PHPUnit_Framework_TestCase $testCase)

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

Parameters

PHPUnit_Framework_TestCase $testCase

static require32Bit(PHPUnit_Framework_TestCase $testCase)

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

Parameters

PHPUnit_Framework_TestCase $testCase

static require64Bit(PHPUnit_Framework_TestCase $testCase)

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

Parameters

PHPUnit_Framework_TestCase $testCase
doc_Symfony
2016-10-28 06:21:40
Comments
Leave a Comment

Please login to continue.