File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232use Hyperf \Di \MethodDefinitionCollectorInterface ;
3333use Hyperf \Di \ReflectionManager ;
3434use Hyperf \Di \ScanHandler \NullScanHandler ;
35- use Hyperf \Serializer \SerializerFactory ;
36- use Hyperf \Serializer \SymfonyNormalizer ;
35+ use Hyperf \Serializer \SimpleNormalizer ;
3736use HyperfTest \Command \Command \Annotation \TestAsCommand ;
3837use Mockery ;
3938use PHPUnit \Framework \Attributes \CoversNothing ;
@@ -193,7 +192,7 @@ protected function getContainer()
193192 return $ logger ;
194193 });
195194
196- $ container ->shouldReceive ('get ' )->with (NormalizerInterface::class)->andReturn (new SymfonyNormalizer (( new SerializerFactory ())-> __invoke () ));
195+ $ container ->shouldReceive ('get ' )->with (NormalizerInterface::class)->andReturn (new SimpleNormalizer ( ));
197196 $ container ->shouldReceive ('has ' )->with (NormalizerInterface::class)->andReturn (true );
198197 $ container ->shouldReceive ('get ' )->with (MethodDefinitionCollectorInterface::class)->andReturn (new MethodDefinitionCollector ());
199198 $ container ->shouldReceive ('has ' )->with (MethodDefinitionCollectorInterface::class)->andReturn (true );
You can’t perform that action at this time.
0 commit comments