Symfony\Component\Intl\Util\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
or . Calling
is only necessary if you use functionality in the
test that is not provided by the stub intl implementation.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class IntlTestHelper
{
- // methods
- public static void requireIntl()
- public static void requireFullIntl()
- public static void require32Bit()
- public static void require64Bit()
- private void __construct()
Methods
public
- require32Bit() — Skips the test unless the current system has a 32bit architecture.
- require64Bit() — Skips the test unless the current system has a 64bit architecture.
- requireFullIntl() — Should be called before tests that require a feature-complete intl implementation.
- requireIntl() — Should be called before tests that work fine with the stub implementation.