1 | <?php |
||
9 | class ManagerTest extends PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | protected $sampleConfigData = [ |
||
12 | 'name' => 'Glenn', |
||
13 | 'age' => 18, |
||
14 | ]; |
||
15 | |||
16 | /** |
||
17 | * Test the @has method. |
||
18 | * @author Glenn McEwan <[email protected]> |
||
19 | */ |
||
20 | public function testHasMethod() |
||
26 | |||
27 | /** |
||
28 | * Test the @get method. |
||
29 | * @author Glenn McEwan <[email protected]> |
||
30 | */ |
||
31 | public function testGetMethod() |
||
39 | |||
40 | /** |
||
41 | * Test the @set method. |
||
42 | * @author Glenn McEwan <[email protected]> |
||
43 | */ |
||
44 | public function testSetMethod() |
||
57 | |||
58 | /** |
||
59 | * Test the @get method works properly when passing a default. |
||
60 | * @author Glenn McEwan <[email protected]> |
||
61 | */ |
||
62 | public function testGetDefaultMethod() |
||
70 | |||
71 | /** |
||
72 | * Test the @all method. |
||
73 | * @author Glenn McEwan <[email protected]> |
||
74 | */ |
||
75 | public function testAllMethod() |
||
89 | |||
90 | /** |
||
91 | * Test the @set method sets a config entry, |
||
92 | * and is retrievable with @get. |
||
93 | * @get with a default parameter should still return null if the |
||
94 | * original @set call had a null value. |
||
95 | * @author Glenn McEwan <[email protected]> |
||
96 | */ |
||
97 | public function testSetNullMethod() |
||
115 | } |
||
116 |