Home
last modified time | relevance | path

Searched refs:MockDependency (Results 1 – 3 of 3) sorted by relevance

/web-bugs/tests/Unit/Container/
H A DContainerTest.php19 $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));
H A DMockService.php13 public function __construct(MockDependency $dependency)
18 public function getDependency(): MockDependency
H A DMockDependency.php8 class MockDependency class

Completed in 5 milliseconds