minor #40606 [Form] skip intl dependent tests if the extension is missing (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[Form] skip intl dependent tests if the extension is missing

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

71da904de0 skip intl dependent tests if the extension is missing
This commit is contained in:
Christian Flothmann 2021-03-28 11:36:00 +02:00
commit 1a2729199f
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ class IntegerTypeTest extends BaseTypeTest
\Locale::setDefault($this->previousLocale);
}
/**
* @requires extension intl
*/
public function testArabicLocale()
{
\Locale::setDefault('ar');
@ -42,6 +45,9 @@ class IntegerTypeTest extends BaseTypeTest
$this->assertSame('123456', $form->getViewData());
}
/**
* @requires extension intl
*/
public function testArabicLocaleNonHtml5()
{
\Locale::setDefault('ar');