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