Completed
Push — master ( 6c2d18...a5e67b )
by Nick
05:43
created

HousesTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Provides test methods to ensure constants are available and as expected for all houses.
5
 */
6
class HousesTest extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
{
8
9
    /**
10
     * Test that the Royal edge-case house is correctly defined.
11
     */
12
	public function testRoyalHouseDefined()
13
    {
14
        $this->assertEquals(0, HOUSE_TYPE_ROYAL);
15
    }
16
17
    /**
18
     * Test that the House of Commons is correctly defined.
19
     */
20
	public function testCommonsHouseDefined()
21
    {
22
        $this->assertEquals(1, HOUSE_TYPE_COMMONS);
23
    }
24
25
    /**
26
     * Test that the House of Lords is correctly defined.
27
     */
28
	public function testLordsHouseDefined()
29
    {
30
        $this->assertEquals(2, HOUSE_TYPE_LORDS);
31
    }
32
33
    /**
34
     * Test that the Northern Ireland Assembly is correctly defined.
35
     */
36
	public function testNIHouseDefined()
37
    {
38
        $this->assertEquals(3, HOUSE_TYPE_NI);
39
    }
40
41
    /**
42
     * Test that the Scottish Parliament is correctly defined.
43
     */
44
	public function testScotlandHouseDefined()
45
    {
46
        $this->assertEquals(4, HOUSE_TYPE_SCOTLAND);
47
    }
48
49
    /**
50
     * Test that the Assembly for Wales is correctly defined.
51
     */
52
	public function testWalesHouseDefined()
53
    {
54
        $this->assertEquals(5, HOUSE_TYPE_WALES);
55
    }
56
}
57