@@ -13,127 +13,127 @@ class DefinitionTest extends \PHPUnit\Framework\TestCase
1313 {
1414 public function testBadArrayOfTypeSizeMax () : void
1515 {
16- $ fixture = new \Tests \Fixtures \TypeTest ();
16+ $ fixture = new \Tests \Fixtures \Type ();
1717 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
1818 $ 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 (),
2424 ];
2525 }
2626
2727 public function testBadArrayOfTypeSizeMin () : void
2828 {
29- $ fixture = new \Tests \Fixtures \TypeTest ();
29+ $ fixture = new \Tests \Fixtures \Type ();
3030 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
3131 $ fixture ->classArraySizeMin = [
32- new \Tests \Fixtures \ClassTest (),
32+ new \Tests \Fixtures \ClassTester (),
3333 ];
3434 }
3535
3636 public function testBadArrayType () : void
3737 {
38- $ fixture = new \Tests \Fixtures \TypeTest ();
38+ $ fixture = new \Tests \Fixtures \Type ();
3939 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
4040 $ fixture ->array = 0 ;
4141 }
4242
4343 public function testBadArrayTypes () : void
4444 {
45- $ fixture = new \Tests \Fixtures \TypeTest ();
45+ $ fixture = new \Tests \Fixtures \Type ();
4646 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
4747 $ 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 (),
5151 ];
5252 }
5353
5454 public function testBadBooleanType () : void
5555 {
56- $ fixture = new \Tests \Fixtures \TypeTest ();
56+ $ fixture = new \Tests \Fixtures \Type ();
5757 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
5858 $ fixture ->boolean = 0 ;
5959 }
6060
6161 public function testBadClassType () : void
6262 {
63- $ fixture = new \Tests \Fixtures \TypeTest ();
63+ $ fixture = new \Tests \Fixtures \Type ();
6464 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
6565 $ fixture ->class = new \DateTime ();
6666 }
6767
6868 public function testBadEnum () : void
6969 {
70- $ fixture = new \Tests \Fixtures \TypeTest ();
70+ $ fixture = new \Tests \Fixtures \Type ();
7171 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidValue::class);
7272 $ fixture ->enum = 'fred ' ;
7373 }
7474
7575 public function testBadField () : void
7676 {
77- $ fixture = new \Tests \Fixtures \TypeTest ();
77+ $ fixture = new \Tests \Fixtures \Type ();
7878 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidField::class);
7979 $ fixture ->badField = 'test ' ;
8080 }
8181
8282 public function testBadFloatType () : void
8383 {
84- $ fixture = new \Tests \Fixtures \TypeTest ();
84+ $ fixture = new \Tests \Fixtures \Type ();
8585 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
8686 $ fixture ->float = 'abc ' ;
8787 }
8888
8989 public function testBadIntType () : void
9090 {
91- $ fixture = new \Tests \Fixtures \TypeTest ();
91+ $ fixture = new \Tests \Fixtures \Type ();
9292 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
9393 $ fixture ->integer = 'test ' ;
9494 }
9595
9696 public function testBadStringType () : void
9797 {
98- $ fixture = new \Tests \Fixtures \TypeTest ();
98+ $ fixture = new \Tests \Fixtures \Type ();
9999 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidType::class);
100100 $ fixture ->string = 123 ;
101101 }
102102
103103 public function testClassArray () : void
104104 {
105- $ testClass = new \Tests \Fixtures \ClassTest ();
105+ $ testClass = new \Tests \Fixtures \ClassTester ();
106106 $ original = [
107- 'classArray ' => [$ testClass , new \Tests \Fixtures \ClassTest (), ],
107+ 'classArray ' => [$ testClass , new \Tests \Fixtures \ClassTester (), ],
108108 ];
109109
110- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
110+ $ fixture = new \Tests \Fixtures \Type ($ original );
111111
112112 $ this ->assertIsArray ($ fixture ->classArray );
113113 $ this ->assertCount (2 , $ fixture ->classArray );
114114 }
115115
116116 public function testClassArraySize () : void
117117 {
118- $ testClass = new \Tests \Fixtures \ClassTest ();
118+ $ testClass = new \Tests \Fixtures \ClassTester ();
119119 $ original = [
120- 'classArraySize ' => [$ testClass , new \Tests \Fixtures \ClassTest (), ],
120+ 'classArraySize ' => [$ testClass , new \Tests \Fixtures \ClassTester (), ],
121121 ];
122122
123- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
123+ $ fixture = new \Tests \Fixtures \Type ($ original );
124124
125125 $ this ->assertIsArray ($ fixture ->classArraySize );
126126 $ this ->assertCount (2 , $ fixture ->classArraySize );
127127 }
128128
129129 public function testClassArraySizeMin () : void
130130 {
131- $ testClass = new \Tests \Fixtures \ClassTest ();
131+ $ testClass = new \Tests \Fixtures \ClassTester ();
132132 $ original = [
133- 'classArraySizeMin ' => [$ testClass , new \Tests \Fixtures \ClassTest (), ],
133+ 'classArraySizeMin ' => [$ testClass , new \Tests \Fixtures \ClassTester (), ],
134134 ];
135135
136- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
136+ $ fixture = new \Tests \Fixtures \Type ($ original );
137137
138138 $ this ->assertIsArray ($ fixture ->classArraySizeMin );
139139 $ this ->assertCount (2 , $ fixture ->classArraySizeMin );
@@ -152,17 +152,17 @@ public function testConstructFromArray() : void
152152 'intEnum ' => 5 ,
153153 ];
154154
155- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
155+ $ fixture = new \Tests \Fixtures \Type ($ original );
156156 $ this ->assertEquals ($ original , $ fixture ->getData ());
157157 }
158158
159159 public function testConstructFromObject () : void
160160 {
161- $ testClass = new \Tests \Fixtures \ClassTest ();
161+ $ testClass = new \Tests \Fixtures \ClassTester ();
162162 $ original = [
163163 'class ' => $ testClass ,
164164 ];
165- $ fixture = new \Tests \Fixtures \TypeTest ($ original );
165+ $ fixture = new \Tests \Fixtures \Type ($ original );
166166
167167 $ this ->assertEquals ($ testClass , $ fixture ->class );
168168 }
@@ -176,7 +176,7 @@ public function testGeneratedClass() : void
176176
177177 public function testGetSet () : void
178178 {
179- $ fixture = new \Tests \Fixtures \TypeTest ();
179+ $ fixture = new \Tests \Fixtures \Type ();
180180 $ integer = 123 ;
181181 $ fixture ->integer = $ integer ;
182182 $ this ->assertEquals ($ integer , $ fixture ->integer );
@@ -217,7 +217,7 @@ public function testGetSet() : void
217217 $ this ->assertEquals ($ string , $ fixture ->ucEnum );
218218 $ this ->assertIsString ($ fixture ->ucEnum );
219219
220- $ class = new \Tests \Fixtures \ClassTest ();
220+ $ class = new \Tests \Fixtures \ClassTester ();
221221 $ fixture ->class = $ class ;
222222 $ this ->assertEquals ($ class , $ fixture ->class );
223223 $ this ->assertIsObject ($ fixture ->class );
@@ -245,14 +245,14 @@ public function testGetSet() : void
245245
246246 public function testMaxLength () : void
247247 {
248- $ fixture = new \Tests \Fixtures \TypeTest ();
248+ $ fixture = new \Tests \Fixtures \Type ();
249249 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
250250 $ fixture ->string = \str_pad ('' , 100 );
251251 }
252252
253253 public function testMinLength () : void
254254 {
255- $ fixture = new \Tests \Fixtures \TypeTest ();
255+ $ fixture = new \Tests \Fixtures \Type ();
256256 $ this ->expectException (\PHPFUI \ConstantContact \Exception \InvalidLength::class);
257257 $ fixture ->string = 'fred ' ;
258258 }
0 commit comments