Definition at line 31 of file LazyInterceptTest.php.
◆ testConstruct()
ILIAS\LegalDocuments\test\Intercept\LazyInterceptTest::testConstruct |
( |
| ) |
|
Definition at line 35 of file LazyInterceptTest.php.
35 : void
36 {
37 $this->assertInstanceOf(LazyIntercept::class, new LazyIntercept($this->fail(...)));
38 }
◆ testId()
ILIAS\LegalDocuments\test\Intercept\LazyInterceptTest::testId |
( |
| ) |
|
Definition at line 49 of file LazyInterceptTest.php.
49 : void
50 {
51 $intercept = $this->mockTree(Intercept::class, ['id' => 'foo']);
52 $instance = new LazyIntercept(fn() => $intercept);
53
54 $this->assertSame('foo', $intercept->id());
55 }
◆ testIntercept()
ILIAS\LegalDocuments\test\Intercept\LazyInterceptTest::testIntercept |
( |
| ) |
|
Definition at line 40 of file LazyInterceptTest.php.
40 : void
41 {
42 $intercept = $this->mockTree(Intercept::class, ['intercept' => true]);
43 $instance = new LazyIntercept(fn() => $intercept);
44
45 $this->assertTrue($intercept->intercept());
46
47 }
◆ testTarget()
ILIAS\LegalDocuments\test\Intercept\LazyInterceptTest::testTarget |
( |
| ) |
|
Definition at line 57 of file LazyInterceptTest.php.
57 : void
58 {
59 $target = $this->mock(Target::class);
60 $intercept = $this->mockTree(Intercept::class, ['target' => $target]);
61 $instance = new LazyIntercept(fn() => $intercept);
62
63 $this->assertSame($target, $intercept->target());
64 }
The documentation for this class was generated from the following file: