Skip to content

Commit 2680a09

Browse files
committed
add test for KeyframeSelectorTest
1 parent f7c201d commit 2680a09

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/Unit/Property/KeyframeSelectorTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,16 @@ public function getArrayRepresentationIncludesComponent(): void
3737

3838
self::assertSame('50%', $result['components'][0]['value']);
3939
}
40+
41+
/**
42+
* @test
43+
*/
44+
public function isValidThrowsForSelectorThatIsNotValidUtf8(): void
45+
{
46+
$this->expectException(\RuntimeException::class);
47+
$this->expectExceptionMessage('The selector is not valid UTF-8.');
48+
$this->expectExceptionCode(1787284398);
49+
50+
KeyframeSelector::isValid("a\xFF");
51+
}
4052
}

0 commit comments

Comments
 (0)