Skip to content

Commit b65e542

Browse files
[tests] Use @requires annotation when possible
1 parent 59a184b commit b65e542

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/Util/StringUtilTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ public function testTrim()
2424

2525
/**
2626
* @dataProvider spaceProvider
27+
* @requires extension mbstring
2728
*/
2829
public function testTrimUtf8Separators($hex)
2930
{
30-
if (!function_exists('mb_convert_encoding')) {
31-
$this->markTestSkipped('The "mb_convert_encoding" function is not available');
32-
}
33-
3431
// Convert hexadecimal representation into binary
3532
// H: hex string, high nibble first (UCS-2BE)
3633
// *: repeat until end of string

0 commit comments

Comments
 (0)