@@ -13,127 +13,127 @@ class DefinitionTest extends \PHPUnit\Framework\TestCase
13
13
{
14
14
public function testBadArrayOfTypeSizeMax () : void
15
15
{
16
- $ fixture = new \Tests \Fixtures \TypeTest ();
16
+ $ fixture = new \Tests \Fixtures \Type ();
17
17
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
18
18
$ fixture ->classArraySize = [
19
- new \Tests \Fixtures \ClassTest (),
20
- new \Tests \Fixtures \ClassTest (),
21
- new \Tests \Fixtures \ClassTest (),
22
- new \Tests \Fixtures \ClassTest (),
23
- new \Tests \Fixtures \ClassTest (),
19
+ new \Tests \Fixtures \ClassTester (),
20
+ new \Tests \Fixtures \ClassTester (),
21
+ new \Tests \Fixtures \ClassTester (),
22
+ new \Tests \Fixtures \ClassTester (),
23
+ new \Tests \Fixtures \ClassTester (),
24
24
];
25
25
}
26
26
27
27
public function testBadArrayOfTypeSizeMin () : void
28
28
{
29
- $ fixture = new \Tests \Fixtures \TypeTest ();
29
+ $ fixture = new \Tests \Fixtures \Type ();
30
30
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
31
31
$ fixture ->classArraySizeMin = [
32
- new \Tests \Fixtures \ClassTest (),
32
+ new \Tests \Fixtures \ClassTester (),
33
33
];
34
34
}
35
35
36
36
public function testBadArrayType () : void
37
37
{
38
- $ fixture = new \Tests \Fixtures \TypeTest ();
38
+ $ fixture = new \Tests \Fixtures \Type ();
39
39
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
40
40
$ fixture ->array = 0 ;
41
41
}
42
42
43
43
public function testBadArrayTypes () : void
44
44
{
45
- $ fixture = new \Tests \Fixtures \TypeTest ();
45
+ $ fixture = new \Tests \Fixtures \Type ();
46
46
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
47
47
$ fixture ->classArray = [
48
- new \Tests \Fixtures \ClassTest (),
49
- new \Tests \Fixtures \ClassTest (),
50
- new \Tests \Fixtures \TypeTest (),
48
+ new \Tests \Fixtures \ClassTester (),
49
+ new \Tests \Fixtures \ClassTester (),
50
+ new \Tests \Fixtures \Type (),
51
51
];
52
52
}
53
53
54
54
public function testBadBooleanType () : void
55
55
{
56
- $ fixture = new \Tests \Fixtures \TypeTest ();
56
+ $ fixture = new \Tests \Fixtures \Type ();
57
57
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
58
58
$ fixture ->boolean = 0 ;
59
59
}
60
60
61
61
public function testBadClassType () : void
62
62
{
63
- $ fixture = new \Tests \Fixtures \TypeTest ();
63
+ $ fixture = new \Tests \Fixtures \Type ();
64
64
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
65
65
$ fixture ->class = new \DateTime ();
66
66
}
67
67
68
68
public function testBadEnum () : void
69
69
{
70
- $ fixture = new \Tests \Fixtures \TypeTest ();
70
+ $ fixture = new \Tests \Fixtures \Type ();
71
71
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidValue::class);
72
72
$ fixture ->enum = 'fred ' ;
73
73
}
74
74
75
75
public function testBadField () : void
76
76
{
77
- $ fixture = new \Tests \Fixtures \TypeTest ();
77
+ $ fixture = new \Tests \Fixtures \Type ();
78
78
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidField::class);
79
79
$ fixture ->badField = 'test ' ;
80
80
}
81
81
82
82
public function testBadFloatType () : void
83
83
{
84
- $ fixture = new \Tests \Fixtures \TypeTest ();
84
+ $ fixture = new \Tests \Fixtures \Type ();
85
85
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
86
86
$ fixture ->float = 'abc ' ;
87
87
}
88
88
89
89
public function testBadIntType () : void
90
90
{
91
- $ fixture = new \Tests \Fixtures \TypeTest ();
91
+ $ fixture = new \Tests \Fixtures \Type ();
92
92
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
93
93
$ fixture ->integer = 'test ' ;
94
94
}
95
95
96
96
public function testBadStringType () : void
97
97
{
98
- $ fixture = new \Tests \Fixtures \TypeTest ();
98
+ $ fixture = new \Tests \Fixtures \Type ();
99
99
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
100
100
$ fixture ->string = 123 ;
101
101
}
102
102
103
103
public function testClassArray () : void
104
104
{
105
- $ testClass = new \Tests \Fixtures \ClassTest ();
105
+ $ testClass = new \Tests \Fixtures \ClassTester ();
106
106
$ original = [
107
- 'classArray ' => [$ testClass , new \Tests \Fixtures \ClassTest (), ],
107
+ 'classArray ' => [$ testClass , new \Tests \Fixtures \ClassTester (), ],
108
108
];
109
109
110
- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
110
+ $ fixture = new \Tests \Fixtures \Type ($ original );
111
111
112
112
$ this ->assertIsArray ($ fixture ->classArray );
113
113
$ this ->assertCount (2 , $ fixture ->classArray );
114
114
}
115
115
116
116
public function testClassArraySize () : void
117
117
{
118
- $ testClass = new \Tests \Fixtures \ClassTest ();
118
+ $ testClass = new \Tests \Fixtures \ClassTester ();
119
119
$ original = [
120
- 'classArraySize ' => [$ testClass , new \Tests \Fixtures \ClassTest (), ],
120
+ 'classArraySize ' => [$ testClass , new \Tests \Fixtures \ClassTester (), ],
121
121
];
122
122
123
- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
123
+ $ fixture = new \Tests \Fixtures \Type ($ original );
124
124
125
125
$ this ->assertIsArray ($ fixture ->classArraySize );
126
126
$ this ->assertCount (2 , $ fixture ->classArraySize );
127
127
}
128
128
129
129
public function testClassArraySizeMin () : void
130
130
{
131
- $ testClass = new \Tests \Fixtures \ClassTest ();
131
+ $ testClass = new \Tests \Fixtures \ClassTester ();
132
132
$ original = [
133
- 'classArraySizeMin ' => [$ testClass , new \Tests \Fixtures \ClassTest (), ],
133
+ 'classArraySizeMin ' => [$ testClass , new \Tests \Fixtures \ClassTester (), ],
134
134
];
135
135
136
- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
136
+ $ fixture = new \Tests \Fixtures \Type ($ original );
137
137
138
138
$ this ->assertIsArray ($ fixture ->classArraySizeMin );
139
139
$ this ->assertCount (2 , $ fixture ->classArraySizeMin );
@@ -152,17 +152,17 @@ public function testConstructFromArray() : void
152
152
'intEnum ' => 5 ,
153
153
];
154
154
155
- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
155
+ $ fixture = new \Tests \Fixtures \Type ($ original );
156
156
$ this ->assertEquals ($ original , $ fixture ->getData ());
157
157
}
158
158
159
159
public function testConstructFromObject () : void
160
160
{
161
- $ testClass = new \Tests \Fixtures \ClassTest ();
161
+ $ testClass = new \Tests \Fixtures \ClassTester ();
162
162
$ original = [
163
163
'class ' => $ testClass ,
164
164
];
165
- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
165
+ $ fixture = new \Tests \Fixtures \Type ($ original );
166
166
167
167
$ this ->assertEquals ($ testClass , $ fixture ->class );
168
168
}
@@ -176,7 +176,7 @@ public function testGeneratedClass() : void
176
176
177
177
public function testGetSet () : void
178
178
{
179
- $ fixture = new \Tests \Fixtures \TypeTest ();
179
+ $ fixture = new \Tests \Fixtures \Type ();
180
180
$ integer = 123 ;
181
181
$ fixture ->integer = $ integer ;
182
182
$ this ->assertEquals ($ integer , $ fixture ->integer );
@@ -217,7 +217,7 @@ public function testGetSet() : void
217
217
$ this ->assertEquals ($ string , $ fixture ->ucEnum );
218
218
$ this ->assertIsString ($ fixture ->ucEnum );
219
219
220
- $ class = new \Tests \Fixtures \ClassTest ();
220
+ $ class = new \Tests \Fixtures \ClassTester ();
221
221
$ fixture ->class = $ class ;
222
222
$ this ->assertEquals ($ class , $ fixture ->class );
223
223
$ this ->assertIsObject ($ fixture ->class );
@@ -245,14 +245,14 @@ public function testGetSet() : void
245
245
246
246
public function testMaxLength () : void
247
247
{
248
- $ fixture = new \Tests \Fixtures \TypeTest ();
248
+ $ fixture = new \Tests \Fixtures \Type ();
249
249
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
250
250
$ fixture ->string = \str_pad ('' , 100 );
251
251
}
252
252
253
253
public function testMinLength () : void
254
254
{
255
- $ fixture = new \Tests \Fixtures \TypeTest ();
255
+ $ fixture = new \Tests \Fixtures \Type ();
256
256
$ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
257
257
$ fixture ->string = 'fred ' ;
258
258
}
0 commit comments