ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\LegalDocuments\test\MapTest Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\test\MapTest:
+ Collaboration diagram for ILIAS\LegalDocuments\test\MapTest:

Public Member Functions

 testConstruct ()
 
 testAdd ()
 
 testSet ()
 
 testHas ()
 
 testAppend ()
 
 testValue ()
 

Detailed Description

Definition at line 26 of file MapTest.php.

Member Function Documentation

◆ testAdd()

ILIAS\LegalDocuments\test\MapTest::testAdd ( )

Definition at line 33 of file MapTest.php.

References ILIAS\UI\examples\Symbol\Glyph\Add\add().

33  : void
34  {
35  $this->assertSame(['foo' => ['bar']], (new Map())->add('foo', 'bar')->value());
36  }
add()
description: > Example for rendring an add glyph.
Definition: add.php:41
+ Here is the call graph for this function:

◆ testAppend()

ILIAS\LegalDocuments\test\MapTest::testAppend ( )

Definition at line 49 of file MapTest.php.

49  : void
50  {
51  $this->assertSame(['foo' => [1, 2], 'bar' => [1, 2]], (new Map(['foo' => [1, 2]]))->append(new Map(['bar' => [1, 2]]))->value());
52  }

◆ testConstruct()

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

Definition at line 28 of file MapTest.php.

28  : void
29  {
30  $this->assertInstanceOf(Map::class, new Map());
31  }

◆ testHas()

ILIAS\LegalDocuments\test\MapTest::testHas ( )

Definition at line 43 of file MapTest.php.

References ILIAS\GlobalScreen\has().

43  : void
44  {
45  $this->assertTrue((new Map(['foo' => ['bar' => 'baz']]))->has('foo', 'bar'));
46  $this->assertFalse((new Map(['foo' => ['bar' => 'baz']]))->has('hoo', 'bar'));
47  }
has(string $class_name)
+ Here is the call graph for this function:

◆ testSet()

ILIAS\LegalDocuments\test\MapTest::testSet ( )

Definition at line 38 of file MapTest.php.

38  : void
39  {
40  $this->assertSame(['foo' => ['bar' => 'baz']], (new Map())->set('foo', 'bar', 'baz')->value());
41  }

◆ testValue()

ILIAS\LegalDocuments\test\MapTest::testValue ( )

Definition at line 54 of file MapTest.php.

54  : void
55  {
56  $this->assertSame(['a' => [], 'b' => ['foo' => 'bar']], (new Map(['a' => [], 'b' => ['foo' => 'bar']]))->value());
57  }

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