ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tests\Refinery\KindlyTo\GroupTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\KindlyTo\GroupTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\KindlyTo\GroupTest:

Public Member Functions

 testIsStringTransformationInstance ()
 
 testIsBooleanTransformationInstance ()
 
 testIsDateTimeTransformationInterface ()
 
 testIsIntegerTransformationInterface ()
 
 testIsFloatTransformationInterface ()
 
 testIsRecordTransformationInterface ()
 
 testIsTupleTransformationInterface ()
 
 testNewDictionaryTransformation ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

KindlyToGroup $basicGroup
 

Detailed Description

Definition at line 34 of file GroupTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::setUp ( )
protected

Definition at line 38 of file GroupTest.php.

38 : void
39 {
40 $this->basicGroup = new KindlyToGroup(new \ILIAS\Data\Factory());
41 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

◆ testIsBooleanTransformationInstance()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsBooleanTransformationInstance ( )

Definition at line 49 of file GroupTest.php.

49 : void
50 {
51 $transformation = $this->basicGroup->bool();
52 $this->assertInstanceOf(BooleanTransformation::class, $transformation);
53 }

◆ testIsDateTimeTransformationInterface()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsDateTimeTransformationInterface ( )

Definition at line 55 of file GroupTest.php.

55 : void
56 {
57 $transformation = $this->basicGroup->dateTime();
58 $this->assertInstanceOf(DateTimeTransformation::class, $transformation);
59 }

◆ testIsFloatTransformationInterface()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsFloatTransformationInterface ( )

Definition at line 67 of file GroupTest.php.

67 : void
68 {
69 $transformation = $this->basicGroup->float();
70 $this->assertInstanceOf(FloatTransformation::class, $transformation);
71 }

◆ testIsIntegerTransformationInterface()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsIntegerTransformationInterface ( )

Definition at line 61 of file GroupTest.php.

61 : void
62 {
63 $transformation = $this->basicGroup->int();
64 $this->assertInstanceOf(IntegerTransformation::class, $transformation);
65 }

◆ testIsRecordTransformationInterface()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsRecordTransformationInterface ( )

Definition at line 73 of file GroupTest.php.

73 : void
74 {
75 $transformation = $this->basicGroup->recordOf(['tostring' => new StringTransformation()]);
76 $this->assertInstanceOf(RecordTransformation::class, $transformation);
77 }

◆ testIsStringTransformationInstance()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsStringTransformationInstance ( )

Definition at line 43 of file GroupTest.php.

43 : void
44 {
45 $transformation = $this->basicGroup->string();
46 $this->assertInstanceOf(StringTransformation::class, $transformation);
47 }

◆ testIsTupleTransformationInterface()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testIsTupleTransformationInterface ( )

Definition at line 79 of file GroupTest.php.

79 : void
80 {
81 $transformation = $this->basicGroup->tupleOf([new StringTransformation()]);
82 $this->assertInstanceOf(TupleTransformation::class, $transformation);
83 }

◆ testNewDictionaryTransformation()

ILIAS\Tests\Refinery\KindlyTo\GroupTest::testNewDictionaryTransformation ( )

Definition at line 85 of file GroupTest.php.

85 : void
86 {
87 $transformation = $this->basicGroup->dictOf(new StringTransformation());
88 $this->assertInstanceOf(DictionaryTransformation::class, $transformation);
89 }

Field Documentation

◆ $basicGroup

KindlyToGroup ILIAS\Tests\Refinery\KindlyTo\GroupTest::$basicGroup
private

Definition at line 36 of file GroupTest.php.


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