ILIAS  release_8 Revision v8.24
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 ()
 
 testCreateUriGrouo ()
 
 testByTryingInGroup ()
 
 testIdentity ()
 
- Public Member Functions inherited from ILIAS\Tests\Refinery\TestCase
 getLanguage ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

Refinery $basicFactory
 

Detailed Description

Definition at line 40 of file FactoryTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Refinery\FactoryTest::setUp ( )
protected

Definition at line 44 of file FactoryTest.php.

44 : void
45 {
46 $language = $this->getMockBuilder(ilLanguage::class)
47 ->disableOriginalConstructor()
48 ->getMock();
49
50 $this->basicFactory = new Refinery(new DataFactory(), $language);
51 }

◆ testByTryingInGroup()

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

Definition at line 128 of file FactoryTest.php.

128 : void
129 {
130 $instance = $this->basicFactory->byTrying([
131 $this->basicFactory->numeric(),
132 $this->basicFactory->string()
133 ]);
134 $this->assertInstanceOf(ByTrying::class, $instance);
135 }

◆ testCreateContainerGroup()

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

Definition at line 109 of file FactoryTest.php.

109 : void
110 {
111 $group = $this->basicFactory->container();
112
113 $this->assertInstanceOf(ContainerGroup::class, $group);
114 }

◆ testCreateCustomGroup()

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

Definition at line 102 of file FactoryTest.php.

102 : void
103 {
104 $group = $this->basicFactory->custom();
105
106 $this->assertInstanceOf(CustomGroup::class, $group);
107 }

◆ testCreateDateTimeGroup()

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

Definition at line 116 of file FactoryTest.php.

116 : void
117 {
118 $group = $this->basicFactory->dateTime();
119 $this->assertInstanceOf(DateTimeGroup::class, $group);
120 }

◆ testCreateInGroup()

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

Definition at line 60 of file FactoryTest.php.

60 : void
61 {
62 $group = $this->basicFactory->in();
63
64 $this->assertInstanceOf(InGroup::class, $group);
65 }

◆ testCreateIntegerGroup()

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

Definition at line 67 of file FactoryTest.php.

67 : void
68 {
69 $group = $this->basicFactory->int();
70
71 $this->assertInstanceOf(IntegerGroup::class, $group);
72 }

◆ testCreateLogicalGroup()

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

Definition at line 88 of file FactoryTest.php.

88 : void
89 {
90 $group = $this->basicFactory->logical();
91
92 $this->assertInstanceOf(LogicalGroup::class, $group);
93 }

◆ testCreateNumericGroup()

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

Definition at line 81 of file FactoryTest.php.

81 : void
82 {
83 $group = $this->basicFactory->numeric();
84
85 $this->assertInstanceOf(NumericGroup::class, $group);
86 }

◆ testCreatePasswordGroup()

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

Definition at line 95 of file FactoryTest.php.

95 : void
96 {
97 $group = $this->basicFactory->password();
98
99 $this->assertInstanceOf(PasswordGroup::class, $group);
100 }

◆ testCreateStringGroup()

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

Definition at line 74 of file FactoryTest.php.

74 : void
75 {
76 $group = $this->basicFactory->string();
77
78 $this->assertInstanceOf(StringGroup::class, $group);
79 }

◆ testCreateToGroup()

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

Definition at line 53 of file FactoryTest.php.

53 : void
54 {
55 $group = $this->basicFactory->to();
56
57 $this->assertInstanceOf(ToGroup::class, $group);
58 }

◆ testCreateUriGrouo()

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

Definition at line 122 of file FactoryTest.php.

122 : void
123 {
124 $group = $this->basicFactory->uri();
125 $this->assertInstanceOf(URIGroup::class, $group);
126 }

◆ testIdentity()

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

Definition at line 137 of file FactoryTest.php.

137 : void
138 {
139 $instance = $this->basicFactory->identity();
140 $this->assertInstanceOf(IdentityTransformation::class, $instance);
141 }

Field Documentation

◆ $basicFactory

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

Definition at line 42 of file FactoryTest.php.


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