Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 512abd7

Browse filesBrowse 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
Copy full SHA for 512abd7

File tree

1 file changed

+9
-0
lines changed
Filter options

1 file changed

+9
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Normalizer/DataUriNormalizerTest.php
+9Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.