@@ -17,7 +17,6 @@ public function setUp()
17
17
$ this ->immutableLoader = new Loader ($ this ->fixturesFolder , true );
18
18
}
19
19
20
- // @see keyVal()
21
20
protected $ keyVal ;
22
21
23
22
/**
@@ -27,7 +26,7 @@ public function setUp()
27
26
* and values, we have this utility function to help generate new, unique
28
27
* key/value pairs.
29
28
*
30
- * @param boolean $reset
29
+ * @param bool $reset
31
30
* If true, a new pair will be generated. If false, the last returned pair
32
31
* will be returned.
33
32
*
@@ -45,33 +44,26 @@ protected function keyVal($reset = false)
45
44
/**
46
45
* Returns the key from keyVal(), without reset.
47
46
*
48
- * @see keyVal()
49
- *
50
47
* @return string
51
48
*/
52
49
protected function key ()
53
50
{
54
51
$ keyVal = $ this ->keyVal ();
52
+
55
53
return key ($ keyVal );
56
54
}
57
55
58
56
/**
59
57
* Returns the value from keyVal(), without reset.
60
58
*
61
- * @see keyVal()
62
- *
63
59
* @return string
64
60
*/
65
61
protected function value () {
66
62
$ keyVal = $ this ->keyVal ();
63
+
67
64
return reset ($ keyVal );
68
65
}
69
66
70
- /**
71
- * Tests that the mutable loader can clear environment variables.
72
- *
73
- * @return void
74
- */
75
67
public function testMutableLoaderClearsEnvironmentVars ()
76
68
{
77
69
// Set an environment variable.
@@ -85,11 +77,6 @@ public function testMutableLoaderClearsEnvironmentVars()
85
77
$ this ->assertSame (false , isset ($ _SERVER [$ this ->key ()]));
86
78
}
87
79
88
- /**
89
- * Tests the immutable loader cannot clear environment variables.
90
- *
91
- * @return void
92
- */
93
80
public function testImmutableLoaderCannotClearEnvironmentVars ()
94
81
{
95
82
// Set an environment variable.
0 commit comments