diff --git a/tests/TracerFactoryTest.php b/tests/TracerFactoryTest.php index e2aab38..6fd10bd 100644 --- a/tests/TracerFactoryTest.php +++ b/tests/TracerFactoryTest.php @@ -165,6 +165,9 @@ public function testNoOpFactory() 'options' => [ ], ], + 'noop' => [ + 'driver' => \Hyperf\Tracer\Adapter\NoOpTracerFactory::class, + ], ], ], ]); @@ -188,6 +191,9 @@ protected function getContainer($config) $container->shouldReceive('get') ->with(\Hyperf\Tracer\Adapter\JaegerTracerFactory::class) ->andReturn(new \Hyperf\Tracer\Adapter\JaegerTracerFactory($config)); + $container->shouldReceive('get') + ->with(\Hyperf\Tracer\Adapter\NoOpTracerFactory::class) + ->andReturn(new \Hyperf\Tracer\Adapter\NoOpTracerFactory()); $container->shouldReceive('get') ->with(\Hyperf\Contract\ConfigInterface::class) ->andReturn($config);