Definition at line 30 of file LazyProvideTest.php.
◆ methods()
| ILIAS\LegalDocuments\test\LazyProvideTest::methods |
( |
| ) |
|
◆ testConstruct()
| ILIAS\LegalDocuments\test\LazyProvideTest::testConstruct |
( |
| ) |
|
Definition at line 34 of file LazyProvideTest.php.
36 $this->assertInstanceOf(LazyProvide::class,
new LazyProvide($this->fail(...)));
◆ testMethods()
| ILIAS\LegalDocuments\test\LazyProvideTest::testMethods |
( |
string |
$method, |
|
|
|
$return = [] |
|
) |
| |
methods
Definition at line 42 of file LazyProvideTest.php.
45 $provide = $this->mockTree(Provide::class, [$method => $return]);
47 $create =
function () use (&$called, $provide) {
52 $instance =
new LazyProvide($create);
53 $this->assertFalse($called);
54 $this->assertSame($provide->$method(), $instance->$method());
55 $this->assertTrue($called);
The documentation for this class was generated from the following file: