Searched refs:MockDependency (Results 1 – 3 of 3) sorted by relevance
19 $service = new MockService($container->get(MockDependency::class));25 $container->set(MockDependency::class, function (Container $container) {26 return new MockDependency('group.param');34 $dependency = $container->get(MockDependency::class);35 $this->assertInstanceOf(MockDependency::class, $dependency);48 $this->assertFalse($container->has(MockDependency::class));50 $container->set(MockDependency::class, function (Container $container) {51 return new MockDependency('group.param');55 $this->assertTrue($container->has(MockDependency::class));
13 public function __construct(MockDependency $dependency)18 public function getDependency(): MockDependency
8 class MockDependency class
Completed in 8 milliseconds