From 8d224396e28d30f81969f083a58763b8b9ceb0a5 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 28 Jun 2021 12:37:41 +0200 Subject: [PATCH] Fix skip condition for INTL Signed-off-by: Alexander M. Turek --- Tests/AbstractAsciiTestCase.php | 12 ++++++++---- Tests/AbstractUnicodeTestCase.php | 6 ++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Tests/AbstractAsciiTestCase.php b/Tests/AbstractAsciiTestCase.php index 70e4ba3..d382f82 100644 --- a/Tests/AbstractAsciiTestCase.php +++ b/Tests/AbstractAsciiTestCase.php @@ -36,11 +36,13 @@ public function testCreateFromEmptyString() /** * @dataProvider provideBytesAt - * - * @requires extension intl 66.2 */ public function testBytesAt(array $expected, string $string, int $offset, int $form = null) { + if (2 !== grapheme_strlen('च्छे') && 'नमस्ते' === $string) { + $this->markTestSkipped('Skipping due to issue ICU-21661.'); + } + $instance = static::createFromString($string); $instance = $form ? $instance->normalize($form) : $instance; @@ -159,11 +161,13 @@ public static function provideWrap(): array /** * @dataProvider provideLength - * - * @requires extension intl 66.2 */ public function testLength(int $length, string $string) { + if (2 !== grapheme_strlen('च्छे') && 'अनुच्छेद' === $string) { + $this->markTestSkipped('Skipping due to issue ICU-21661.'); + } + $instance = static::createFromString($string); $this->assertSame($length, $instance->length()); diff --git a/Tests/AbstractUnicodeTestCase.php b/Tests/AbstractUnicodeTestCase.php index 0f2a584..f84942c 100644 --- a/Tests/AbstractUnicodeTestCase.php +++ b/Tests/AbstractUnicodeTestCase.php @@ -57,11 +57,13 @@ public static function provideBytesAt(): array /** * @dataProvider provideCodePointsAt - * - * @requires extension intl 66.2 */ public function testCodePointsAt(array $expected, string $string, int $offset, int $form = null) { + if (2 !== grapheme_strlen('च्छे') && 'नमस्ते' === $string) { + $this->markTestSkipped('Skipping due to issue ICU-21661.'); + } + $instance = static::createFromString($string); $instance = $form ? $instance->normalize($form) : $instance;