8000 updated serializer tests to use the new interfaces · symfony/symfony@067242d · GitHub
[go: up one dir, main page]

Skip to content

Commit 067242d

Browse files
committed
updated serializer tests to use the new interfaces
1 parent d811e29 commit 067242d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/Symfony/Tests/Component/Serializer/Fixtures/NormalizableTraversableDummy.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
namespace Symfony\Tests\Component\Serializer\Fixtures;
44

55
use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
6-
use Symfony\Component\Serializer\SerializerInterface;
6+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
7+
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
78

89
class NormalizableTraversableDummy extends TraversableDummy implements NormalizableInterface
910
{
10-
public function normalize(SerializerInterface $serializer, $format = null)
11+
public function normalize(NormalizerInterface $normalizer, $format = null)
1112
{
1213
return array(
1314
'foo' => 'normalizedFoo',
1415
'bar' => 'normalizedBar',
1516
);
1617
}
1718

18-
public function denormalize(SerializerInterface $serializer, $data, $format = null)
19+
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null)
1920
{
2021
return array(
2122
'foo' => 'denormalizedFoo',

tests/Symfony/Tests/Component/Serializer/Fixtures/ScalarDummy.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
namespace Symfony\Tests\Component\Serializer\Fixtures;
44

55
use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
6+
use Symfony\Component\Serializer\Normalizer\DenormalizableInterface;
67
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
78
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
89

9-
class ScalarDummy implements NormalizableInterface
10+
class ScalarDummy implements NormalizableInterface, DenormalizableInterface
1011
{
1112
public $foo;
1213
public $xmlFoo;

0 commit comments

Comments
 (0)
0