Skip to content

Commit 3f5067d

Browse files
[tests] Use @requires annotation when possible
1 parent a262138 commit 3f5067d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Tests/ParserTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,11 @@ public function testObjectsSupportDisabledWithExceptions()
446446
$this->parser->parse('foo: !!php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}', true, false);
447447
}
448448

449+
/**
450+
* @requires extension iconv
451+
*/
449452
public function testNonUtf8Exception()
450453
{
451-
if (!function_exists('iconv')) {
452-
$this->markTestSkipped('Exceptions for non-utf8 charsets require the iconv() function.');
453-
454-
return;
455-
}
456-
457454
$yamls = array(
458455
iconv('UTF-8', 'ISO-8859-1', "foo: 'äöüß'"),
459456
iconv('UTF-8', 'ISO-8859-15', "euro: '€'"),

0 commit comments

Comments
 (0)