@@ -211,8 +211,7 @@ public function testProvidedContainer()
211211
212212 $ cli = new CLI (new Generic (), ['test.php ' , 'build ' ], $ container );
213213
214- $ this ->assertNotSame ($ container , $ cli ->getContainer ());
215- $ this ->assertEquals ('test-value ' , $ cli ->getResource ('test ' ));
214+ $ this ->assertSame ($ container , $ cli ->getContainer ());
216215
217216 $ cli ->task ('build ' )
218217 ->inject ('test ' )
@@ -227,25 +226,6 @@ public function testProvidedContainer()
227226 $ this ->assertEquals ('test-value ' , $ result );
228227 }
229228
230- public function testResetPreservesInjectedContainer ()
231- {
232- $ container = new Container ();
233- $ container ->set ('base ' , fn () => 'base-value ' );
234-
235- $ cli = new CLI (new Generic (), ['test.php ' , 'build ' ], $ container );
236- $ cli ->setResource ('runtime ' , fn () => 'runtime-value ' );
237-
238- $ this ->assertEquals ('base-value ' , $ cli ->getResource ('base ' ));
239- $ this ->assertEquals ('runtime-value ' , $ cli ->getResource ('runtime ' ));
240-
241- $ cli ->reset ();
242-
243- $ this ->assertEquals ('base-value ' , $ cli ->getResource ('base ' ));
244-
245- $ this ->expectException (\Exception::class);
246- $ cli ->getResource ('runtime ' );
247- }
248-
249229 public function testMatch ()
250230 {
251231 $ cli = new CLI (new Generic (), ['test.php ' , 'build2 ' , '--email=me@example.com ' , '--list=item1 ' , '--list=item2 ' ]); // Mock command request
0 commit comments