66use Bigcommerce \Injector \Reflection \ClassInspector ;
77use PHPUnit \Framework \Attributes \CoversClass ;
88use PHPUnit \Framework \TestCase ;
9+ use Prophecy \Argument ;
910use Prophecy \PhpUnit \ProphecyTrait ;
1011use Prophecy \Prophecy \ObjectProphecy ;
1112use Psr \Container \ContainerInterface ;
@@ -227,6 +228,7 @@ public function testAutoCreate()
227228 $ this ->mockDummyDependencySignature ();
228229 $ this ->mockDummySubDependencySignature ();
229230
231+ $ this ->container ->has (Argument::any ())->willReturn (false );
230232 $ injector = new Injector ($ this ->container ->reveal (), $ this ->inspector ->reveal ());
231233 $ injector ->addAutoCreate (".*?Dummy.*? " );
232234 $ instance = $ injector ->create (
@@ -262,6 +264,7 @@ public function testAutoCreateStackWrap()
262264 $ this ->mockDummySimpleSignature ();
263265 $ this ->mockDummyDependencySignature ();
264266
267+ $ this ->container ->has (Argument::any ())->willReturn (false );
265268 $ injector = new Injector ($ this ->container ->reveal (), $ this ->inspector ->reveal ());
266269 $ injector ->addAutoCreate (".*?DummyDependency " );
267270 $ instance = $ injector ->create (
@@ -283,6 +286,7 @@ public function testCreateMissingParameter()
283286 );
284287 $ this ->mockDummySimpleSignature ();
285288
289+ $ this ->container ->has (Argument::any ())->willReturn (false );
286290 $ injector = new Injector ($ this ->container ->reveal (), $ this ->inspector ->reveal ());
287291 $ instance = $ injector ->create (
288292 DummySimpleConstructor::class
0 commit comments