8000 minor #17697 [Serializer] Add missing `@requires` annotations (nicola… · symfony/symfony@512abd7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 512abd7

Browse files
minor #17697 [Serializer] Add missing @requires annotations (nicolas-grekas)
This PR was merged into the 3.1-dev branch. Discussion ---------- [Serializer] Add missing `@requires` annotations | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 6de5b40 [Serializer] Add missing `@requires` annotations
2 parents 4dde7a5 + 6de5b40 commit 512abd7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/Serializer/Tests/Normalizer/DataUriNormalizerTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,29 @@ public function testSupportNormalization()
4545
$this->assertTrue($this->normalizer->supportsNormalization(new \SplFileObject('data:,Hello%2C%20World!')));
4646
}
4747

48+
/**
49+
* @requires extension fileinfo
50+
*/
4851
public function testNormalizeHttpFoundationFile()
4952
{
5053
$file = new File(__DIR__.'/../Fixtures/test.gif');
5154

5255
$this->assertSame(self::TEST_GIF_DATA, $this->normalizer->normalize($file));
5356
}
5457

58+
/**
59+
* @requires extension fileinfo
60+
*/
5561
public function testNormalizeSplFileInfo()
5662
{
5763
$file = new \SplFileInfo(__DIR__.'/../Fixtures/test.gif');
5864

5965
$this->assertSame(self::TEST_GIF_DATA, $this->normalizer->normalize($file));
6066
}
6167

68+
/**
69+
* @requires extension fileinfo
70+
*/
6271
public function testNormalizeText()
6372
{
6473
$file = new \SplFileObject(__DIR__.'/../Fixtures/test.txt');

0 commit comments

Comments
 (0)
0