ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Tests\Refinery\FactoryTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\FactoryTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\FactoryTest:

Public Member Functions

 testCreateToGroup ()
 
 testCreateInGroup ()
 
 testCreateIntegerGroup ()
 
 testCreateStringGroup ()
 
 testCreateNumericGroup ()
 
 testCreateLogicalGroup ()
 
 testCreatePasswordGroup ()
 
 testCreateCustomGroup ()
 
 testCreateContainerGroup ()
 
 testCreateDateTimeGroup ()
 
 testCreateUriGroup ()
 
 testCreateEncodeGroup ()
 
 testCreateDecodeGroup ()
 
 testByTryingInGroup ()
 
 testIdentity ()
 
 testExecutable ()
 
- Public Member Functions inherited from ILIAS\Tests\Refinery\TestCase
 getLanguage ()
 

Private Attributes

Refinery $basicFactory
 

Detailed Description

Definition at line 44 of file FactoryTest.php.

Member Function Documentation

◆ testByTryingInGroup()

ILIAS\Tests\Refinery\FactoryTest::testByTryingInGroup ( )

Definition at line 141 of file FactoryTest.php.

141 : void
142 {
143 $instance = $this->basicFactory->byTrying([
144 $this->basicFactory->numeric(),
145 $this->basicFactory->string()
146 ]);
147 $this->assertInstanceOf(ByTrying::class, $instance);
148 }

◆ testCreateContainerGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateContainerGroup ( )

Definition at line 112 of file FactoryTest.php.

112 : void
113 {
114 $group = $this->basicFactory->container();
115
116 $this->assertInstanceOf(ContainerGroup::class, $group);
117 }

◆ testCreateCustomGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateCustomGroup ( )

Definition at line 105 of file FactoryTest.php.

105 : void
106 {
107 $group = $this->basicFactory->custom();
108
109 $this->assertInstanceOf(CustomGroup::class, $group);
110 }

◆ testCreateDateTimeGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateDateTimeGroup ( )

Definition at line 119 of file FactoryTest.php.

119 : void
120 {
121 $group = $this->basicFactory->dateTime();
122 $this->assertInstanceOf(DateTimeGroup::class, $group);
123 }

◆ testCreateDecodeGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateDecodeGroup ( )

Definition at line 136 of file FactoryTest.php.

136 : void
137 {
138 $this->assertInstanceOf(DecodeGroup::class, $this->basicFactory->decode());
139 }

◆ testCreateEncodeGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateEncodeGroup ( )

Definition at line 131 of file FactoryTest.php.

131 : void
132 {
133 $this->assertInstanceOf(EncodeGroup::class, $this->basicFactory->encode());
134 }

◆ testCreateInGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateInGroup ( )

Definition at line 63 of file FactoryTest.php.

63 : void
64 {
65 $group = $this->basicFactory->in();
66
67 $this->assertInstanceOf(InGroup::class, $group);
68 }

◆ testCreateIntegerGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateIntegerGroup ( )

Definition at line 70 of file FactoryTest.php.

70 : void
71 {
72 $group = $this->basicFactory->int();
73
74 $this->assertInstanceOf(IntegerGroup::class, $group);
75 }

◆ testCreateLogicalGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateLogicalGroup ( )

Definition at line 91 of file FactoryTest.php.

91 : void
92 {
93 $group = $this->basicFactory->logical();
94
95 $this->assertInstanceOf(LogicalGroup::class, $group);
96 }

◆ testCreateNumericGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateNumericGroup ( )

Definition at line 84 of file FactoryTest.php.

84 : void
85 {
86 $group = $this->basicFactory->numeric();
87
88 $this->assertInstanceOf(NumericGroup::class, $group);
89 }

◆ testCreatePasswordGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreatePasswordGroup ( )

Definition at line 98 of file FactoryTest.php.

98 : void
99 {
100 $group = $this->basicFactory->password();
101
102 $this->assertInstanceOf(PasswordGroup::class, $group);
103 }

◆ testCreateStringGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateStringGroup ( )

Definition at line 77 of file FactoryTest.php.

77 : void
78 {
79 $group = $this->basicFactory->string();
80
81 $this->assertInstanceOf(StringGroup::class, $group);
82 }

◆ testCreateToGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateToGroup ( )

Definition at line 56 of file FactoryTest.php.

56 : void
57 {
58 $group = $this->basicFactory->to();
59
60 $this->assertInstanceOf(ToGroup::class, $group);
61 }

◆ testCreateUriGroup()

ILIAS\Tests\Refinery\FactoryTest::testCreateUriGroup ( )

Definition at line 125 of file FactoryTest.php.

125 : void
126 {
127 $group = $this->basicFactory->uri();
128 $this->assertInstanceOf(URIGroup::class, $group);
129 }

◆ testExecutable()

ILIAS\Tests\Refinery\FactoryTest::testExecutable ( )

Definition at line 156 of file FactoryTest.php.

156 : void
157 {
158 $instance = $this->basicFactory->executable();
159 $this->assertInstanceOf(IsExecutableTransformation::class, $instance);
160 }

◆ testIdentity()

ILIAS\Tests\Refinery\FactoryTest::testIdentity ( )

Definition at line 150 of file FactoryTest.php.

150 : void
151 {
152 $instance = $this->basicFactory->identity();
153 $this->assertInstanceOf(IdentityTransformation::class, $instance);
154 }

Field Documentation

◆ $basicFactory

Refinery ILIAS\Tests\Refinery\FactoryTest::$basicFactory
private

Definition at line 46 of file FactoryTest.php.


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