ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\LegalDocuments\test\InternalTest Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\test\InternalTest:
+ Collaboration diagram for ILIAS\LegalDocuments\test\InternalTest:

Public Member Functions

 testConstruct ()
 
 testAll ()
 
 testGet ()
 

Private Member Functions

 createWithDummy ()
 
 dummyConsumer ()
 
 wiring ()
 

Detailed Description

Definition at line 34 of file InternalTest.php.

Member Function Documentation

◆ createWithDummy()

ILIAS\LegalDocuments\test\InternalTest::createWithDummy ( )
private

Definition at line 53 of file InternalTest.php.

References ILIAS\LegalDocuments\test\InternalTest\dummyConsumer(), and ILIAS\LegalDocuments\test\InternalTest\wiring().

Referenced by ILIAS\LegalDocuments\test\InternalTest\testAll(), and ILIAS\LegalDocuments\test\InternalTest\testGet().

53  : Internal
54  {
55  return new Internal(
56  $this->fail(...),
57  fn() => $this->wiring(),
58  [
59  get_class($this->dummyConsumer())
60  ]
61  );
62  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dummyConsumer()

ILIAS\LegalDocuments\test\InternalTest::dummyConsumer ( )
private

Definition at line 64 of file InternalTest.php.

References ILIAS\GlobalScreen\Provider\id().

Referenced by ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

64  : Consumer
65  {
66  return new class () implements Consumer {
67  public function uses(UseSlot $slot, LazyProvide $provide): UseSlot
68  {
69  return $slot;
70  }
71  public function id(): string
72  {
73  return self::class;
74  }
75  };
76  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testAll()

ILIAS\LegalDocuments\test\InternalTest::testAll ( )

Definition at line 43 of file InternalTest.php.

References ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

43  : void
44  {
45  $this->assertSame(['a' => 1, 'b' => 2, 'c' => 3], $this->createWithDummy()->all('foo'));
46  }
+ Here is the call graph for this function:

◆ testConstruct()

ILIAS\LegalDocuments\test\InternalTest::testConstruct ( )

Definition at line 38 of file InternalTest.php.

38  : void
39  {
40  $this->assertInstanceOf(Internal::class, new Internal($this->fail(...), $this->fail(...), []));
41  }

◆ testGet()

ILIAS\LegalDocuments\test\InternalTest::testGet ( )

Definition at line 48 of file InternalTest.php.

References ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

48  : void
49  {
50  $this->assertSame(2, $this->createWithDummy()->get('foo', 'b'));
51  }
+ Here is the call graph for this function:

◆ wiring()

ILIAS\LegalDocuments\test\InternalTest::wiring ( )
private

Definition at line 78 of file InternalTest.php.

References ILIAS\__construct().

Referenced by ILIAS\LegalDocuments\test\InternalTest\createWithDummy().

78  : Wiring
79  {
80  return new class () extends Wiring {
81  public function __construct()
82  {
83  }
84  public function map(): Map
85  {
86  return new Map(['foo' => ['a' => 1, 'b' => 2, 'c' => 3]]);
87  }
88  };
89  }
__construct()
Constructor setup ILIAS global object public.
Definition: class.ilias.php:62
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: