Definition at line 40 of file GroupTest.php.
◆ setUp()
ILIAS\Tests\Refinery\To\GroupTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 44 of file GroupTest.php.
46 $language = $this->getMockBuilder(Language::class)->disableOriginalConstructor()->getMock();
47 $this->basicGroup =
new ToGroup(
new DataFactory(), $language);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testCreateDataTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testCreateDataTransformation |
( |
| ) |
|
- Exceptions
-
Definition at line 158 of file GroupTest.php.
160 $transformation = $this->basicGroup->data(
'alphanumeric');
162 $this->assertInstanceOf(NewMethodTransformation::class, $transformation);
164 $result = $transformation->transform([
'hello']);
166 $this->assertInstanceOf(Alphanumeric::class, $result);
◆ testDictionaryOfTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testDictionaryOfTransformation |
( |
| ) |
|
Definition at line 102 of file GroupTest.php.
104 $transformation = $this->basicGroup->dictOf(
new StringTransformation());
106 $this->assertInstanceOf(DictionaryTransformation::class, $transformation);
◆ testIsBooleanTransformationInstance()
ILIAS\Tests\Refinery\To\GroupTest::testIsBooleanTransformationInstance |
( |
| ) |
|
Definition at line 71 of file GroupTest.php.
73 $transformation = $this->basicGroup->bool();
75 $this->assertInstanceOf(BooleanTransformation::class, $transformation);
◆ testIsFloatTransformationInstance()
ILIAS\Tests\Refinery\To\GroupTest::testIsFloatTransformationInstance |
( |
| ) |
|
Definition at line 64 of file GroupTest.php.
66 $transformation = $this->basicGroup->float();
68 $this->assertInstanceOf(FloatTransformation::class, $transformation);
◆ testIsIntegerTransformationInstance()
ILIAS\Tests\Refinery\To\GroupTest::testIsIntegerTransformationInstance |
( |
| ) |
|
Definition at line 50 of file GroupTest.php.
52 $transformation = $this->basicGroup->int();
54 $this->assertInstanceOf(IntegerTransformation::class, $transformation);
◆ testIsStringTransformationInstance()
ILIAS\Tests\Refinery\To\GroupTest::testIsStringTransformationInstance |
( |
| ) |
|
Definition at line 57 of file GroupTest.php.
59 $transformation = $this->basicGroup->string();
61 $this->assertInstanceOf(StringTransformation::class, $transformation);
◆ testListOfTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testListOfTransformation |
( |
| ) |
|
Definition at line 78 of file GroupTest.php.
80 $transformation = $this->basicGroup->listOf(
new StringTransformation());
82 $this->assertInstanceOf(ListTransformation::class, $transformation);
◆ testNewMethodTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testNewMethodTransformation |
( |
| ) |
|
- Exceptions
-
Definition at line 122 of file GroupTest.php.
124 $transformation = $this->basicGroup->toNew([
new MyClass(),
'myMethod']);
126 $this->assertInstanceOf(NewMethodTransformation::class, $transformation);
◆ testNewMethodTransformationThrowsExceptionBecauseToFewParametersAreGiven()
ILIAS\Tests\Refinery\To\GroupTest::testNewMethodTransformationThrowsExceptionBecauseToFewParametersAreGiven |
( |
| ) |
|
Definition at line 142 of file GroupTest.php.
144 $this->expectNotToPerformAssertions();
147 $transformation = $this->basicGroup->toNew([
new MyClass()]);
◆ testNewMethodTransformationThrowsExceptionBecauseToManyParametersAreGiven()
ILIAS\Tests\Refinery\To\GroupTest::testNewMethodTransformationThrowsExceptionBecauseToManyParametersAreGiven |
( |
| ) |
|
Definition at line 129 of file GroupTest.php.
131 $this->expectNotToPerformAssertions();
134 $transformation = $this->basicGroup->toNew([
new MyClass(),
'myMethod',
'hello']);
◆ testNewObjectTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testNewObjectTransformation |
( |
| ) |
|
- Exceptions
-
Definition at line 112 of file GroupTest.php.
114 $transformation = $this->basicGroup->toNew(MyClass::class);
116 $this->assertInstanceOf(NewObjectTransformation::class, $transformation);
◆ testRecordOfTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testRecordOfTransformation |
( |
| ) |
|
- Exceptions
-
Definition at line 95 of file GroupTest.php.
97 $transformation = $this->basicGroup->recordOf([
'toString' =>
new StringTransformation()]);
99 $this->assertInstanceOf(RecordTransformation::class, $transformation);
◆ testTupleOfTransformation()
ILIAS\Tests\Refinery\To\GroupTest::testTupleOfTransformation |
( |
| ) |
|
Definition at line 85 of file GroupTest.php.
87 $transformation = $this->basicGroup->tupleOf([
new StringTransformation()]);
89 $this->assertInstanceOf(TupleTransformation::class, $transformation);
◆ $basicGroup
ToGroup ILIAS\Tests\Refinery\To\GroupTest::$basicGroup |
|
private |
The documentation for this class was generated from the following file: