File tree 1 file changed +9
-0
lines changed
src/Symfony/Component/Serializer/Tests/Normalizer
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -45,20 +45,29 @@ public function testSupportNormalization()
45
45
$ this ->assertTrue ($ this ->normalizer ->supportsNormalization (new \SplFileObject ('data:,Hello%2C%20World! ' )));
46
46
}
47
47
48
+ /**
49
+ * @requires extension fileinfo
50
+ */
48
51
public function testNormalizeHttpFoundationFile ()
49
52
{
50
53
$ file = new File (__DIR__ .'/../Fixtures/test.gif ' );
51
54
52
55
$ this ->assertSame (self ::TEST_GIF_DATA , $ this ->normalizer ->normalize ($ file ));
53
56
}
54
57
58
+ /**
59
+ * @requires extension fileinfo
60
+ */
55
61
public function testNormalizeSplFileInfo ()
56
62
{
57
63
$ file = new \SplFileInfo (__DIR__ .'/../Fixtures/test.gif ' );
58
64
59
65
$ this ->assertSame (self ::TEST_GIF_DATA , $ this ->normalizer ->normalize ($ file ));
60
66
}
61
67
68
+ /**
69
+ * @requires extension fileinfo
70
+ */
62
71
public function testNormalizeText ()
63
72
{
64
73
$ file = new \SplFileObject (__DIR__ .'/../Fixtures/test.txt ' );
You can’t perform that action at this time.
0 commit comments