19 declare(strict_types=1);
27 require_once __DIR__ .
'/ContainerMock.php';
35 $this->assertInstanceOf(LazyProvide::class,
new LazyProvide($this->fail(...)));
41 public function testMethods(
string $method, $return = []): void
44 $provide = $this->mockTree(Provide::class, [$method => $return]);
46 $create =
function () use (&$called, $provide) {
52 $this->assertFalse($called);
53 $this->assertSame($provide->$method(), $instance->$method());
54 $this->assertTrue($called);
testMethods(string $method, $return=[])
methods