Skip to content

Commit 99611c6

Browse files
committed
Class ordering from PHPCSFixer
1 parent 412f7e9 commit 99611c6

30 files changed

+917
-911
lines changed

Tests/CustomFieldTest.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@
1111
*/
1212
class CustomFieldTest extends \PHPUnit\Framework\TestCase
1313
{
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+
1442
public function testGetSet() : void
1543
{
1644
$string = 'A long string';
@@ -42,34 +70,6 @@ public function testJsonOutput() : void
4270
$this->assertEquals($expectedJSON, $json);
4371
}
4472

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-
7373
public function testMaxLength() : void
7474
{
7575
$fixture = new \Tests\Fixtures\CustomFieldTest();

0 commit comments

Comments
 (0)