66use Thunder \Serializard \Format \XmlFormat ;
77use Thunder \Serializard \Format \YamlFormat ;
88use Thunder \Serializard \FormatContainer \FormatContainer ;
9- use Thunder \Serializard \HydratorContainer \HydratorContainer ;
9+ use Thunder \Serializard \HydratorContainer \FallbackHydratorContainer ;
1010use Thunder \Serializard \HydratorContainer \HydratorContainerInterface as Hydrators ;
1111use Thunder \Serializard \Normalizer \ReflectionNormalizer ;
12- use Thunder \Serializard \NormalizerContainer \NormalizerContainer ;
12+ use Thunder \Serializard \NormalizerContainer \FallbackNormalizerContainer ;
1313use Thunder \Serializard \Serializard ;
1414use Thunder \Serializard \Tests \Fake \FakeTag ;
1515use Thunder \Serializard \Tests \Fake \FakeUser ;
@@ -73,15 +73,15 @@ public function provideExamples()
7373 public function testInterfaces ()
7474 {
7575 $ interface = 'Thunder\Serializard\Tests\Fake\Interfaces\TypeInterface ' ;
76- $ normalizers = new NormalizerContainer ();
76+ $ normalizers = new FallbackNormalizerContainer ();
7777 $ normalizers ->add ($ interface , 'type ' , function (TypeInterface $ type ) {
7878 return array (
7979 'type ' => $ type ->getType (),
8080 'value ' => $ type ->getValue (),
8181 );
8282 });
8383
84- $ hydrators = new HydratorContainer ();
84+ $ hydrators = new FallbackHydratorContainer ();
8585
8686 $ formats = new FormatContainer ();
8787 $ formats ->add ('array ' , new ArrayFormat ());
@@ -98,11 +98,11 @@ public function testCycleException($var, $format)
9898 $ userClass = 'Thunder\Serializard\Tests\Fake\FakeUser ' ;
9999 $ tagClass = 'Thunder\Serializard\Tests\Fake\FakeTag ' ;
100100
101- $ normalizers = new NormalizerContainer ();
101+ $ normalizers = new FallbackNormalizerContainer ();
102102 $ normalizers ->add ($ userClass , 'user ' , new ReflectionNormalizer ());
103103 $ normalizers ->add ($ tagClass , 'tag ' , new ReflectionNormalizer ());
104104
105- $ hydrators = new HydratorContainer ();
105+ $ hydrators = new FallbackHydratorContainer ();
106106
107107 $ formats = new FormatContainer ();
108108 $ formats ->add ('xml ' , new XmlFormat ());
@@ -136,7 +136,7 @@ private function getSerializard()
136136 $ userClass = 'Thunder\Serializard\Tests\Fake\FakeUser ' ;
137137 $ tagClass = 'Thunder\Serializard\Tests\Fake\FakeTag ' ;
138138
139- $ normalizers = new NormalizerContainer ();
139+ $ normalizers = new FallbackNormalizerContainer ();
140140 $ normalizers ->add ($ userClass , 'user ' , new ReflectionNormalizer ());
141141 $ normalizers ->add ($ tagClass , 'tag ' , function (FakeTag $ tag ) {
142142 return array (
@@ -145,7 +145,7 @@ private function getSerializard()
145145 );
146146 });
147147
148- $ hydrators = new HydratorContainer ();
148+ $ hydrators = new FallbackHydratorContainer ();
149149 $ hydrators ->add ($ userClass , 'user ' , function (array $ data , Hydrators $ handlers ) use ($ tagClass ) {
150150 $ tagHandler = $ handlers ->getHandler ($ tagClass );
151151
@@ -176,8 +176,8 @@ public function testParent()
176176
177177 $ formats = new FormatContainer ();
178178 $ formats ->add ('array ' , new ArrayFormat ());
179- $ normalizers = new NormalizerContainer ();
180- $ hydrators = new HydratorContainer ();
179+ $ normalizers = new FallbackNormalizerContainer ();
180+ $ hydrators = new FallbackHydratorContainer ();
181181 $ serializard = new Serializard ($ formats , $ normalizers , $ hydrators );
182182
183183 $ normalizers ->add ($ userClass .'ParentParent ' , 'user ' , function (FakeUserParentParent $ user ) { return 'ancestor ' ; });
0 commit comments