|
11 | 11 | */ |
12 | 12 | class CustomFieldTest extends \PHPUnit\Framework\TestCase |
13 | 13 | { |
| 14 | + public function testBadArrayType() : void |
| 15 | + { |
| 16 | + $fixture = new \Tests\Fixtures\CustomFieldTest(); |
| 17 | + $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
| 18 | + $fixture->cf_array = []; |
| 19 | + } |
| 20 | + |
| 21 | + public function testBadBooleanType() : void |
| 22 | + { |
| 23 | + $fixture = new \Tests\Fixtures\CustomFieldTest(); |
| 24 | + $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
| 25 | + $fixture->cf_boolean = true; |
| 26 | + } |
| 27 | + |
| 28 | + public function testBadFloatType() : void |
| 29 | + { |
| 30 | + $fixture = new \Tests\Fixtures\CustomFieldTest(); |
| 31 | + $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
| 32 | + $fixture->cf_float = 1.234; |
| 33 | + } |
| 34 | + |
| 35 | + public function testBadIntType() : void |
| 36 | + { |
| 37 | + $fixture = new \Tests\Fixtures\CustomFieldTest(); |
| 38 | + $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
| 39 | + $fixture->cf_integer = 0; |
| 40 | + } |
| 41 | + |
14 | 42 | public function testGetSet() : void |
15 | 43 | { |
16 | 44 | $string = 'A long string'; |
@@ -42,34 +70,6 @@ public function testJsonOutput() : void |
42 | 70 | $this->assertEquals($expectedJSON, $json); |
43 | 71 | } |
44 | 72 |
|
45 | | - public function testBadIntType() : void |
46 | | - { |
47 | | - $fixture = new \Tests\Fixtures\CustomFieldTest(); |
48 | | - $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
49 | | - $fixture->cf_integer = 0; |
50 | | - } |
51 | | - |
52 | | - public function testBadFloatType() : void |
53 | | - { |
54 | | - $fixture = new \Tests\Fixtures\CustomFieldTest(); |
55 | | - $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
56 | | - $fixture->cf_float = 1.234; |
57 | | - } |
58 | | - |
59 | | - public function testBadBooleanType() : void |
60 | | - { |
61 | | - $fixture = new \Tests\Fixtures\CustomFieldTest(); |
62 | | - $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
63 | | - $fixture->cf_boolean = true; |
64 | | - } |
65 | | - |
66 | | - public function testBadArrayType() : void |
67 | | - { |
68 | | - $fixture = new \Tests\Fixtures\CustomFieldTest(); |
69 | | - $this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class); |
70 | | - $fixture->cf_array = []; |
71 | | - } |
72 | | - |
73 | 73 | public function testMaxLength() : void |
74 | 74 | { |
75 | 75 | $fixture = new \Tests\Fixtures\CustomFieldTest(); |
|
0 commit comments