Definition at line 30 of file LazyProvideTest.php.
◆ methods()
static ILIAS\LegalDocuments\test\LazyProvideTest::methods |
( |
| ) |
|
|
static |
◆ 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 = [] |
|
) |
| |
Definition at line 40 of file LazyProvideTest.php.
43 $provide = $this->mockTree(Provide::class, [$method => $return]);
45 $create =
function () use (&$called, $provide) {
50 $instance =
new LazyProvide($create);
51 $this->assertFalse($called);
52 $this->assertSame($provide->$method(), $instance->$method());
53 $this->assertTrue($called);
The documentation for this class was generated from the following file: