| @@ 102-116 (lines=15) @@ | ||
| 99 | /** |
|
| 100 | * @expectedException \RuntimeException |
|
| 101 | */ |
|
| 102 | public function testImmutableArrayAccess() { |
|
| 103 | $vars = array( |
|
| 104 | 'get' => array('name' => 'John Q. Public', 'nickname' => 'Joey'), |
|
| 105 | 'method' => 'GET' |
|
| 106 | ); |
|
| 107 | ||
| 108 | $request = new Request( |
|
| 109 | $vars, |
|
| 110 | $this->secureRandom, |
|
| 111 | $this->config, |
|
| 112 | $this->stream |
|
| 113 | ); |
|
| 114 | ||
| 115 | $request['nickname'] = 'Janey'; |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * @expectedException \RuntimeException |
|
| @@ 121-135 (lines=15) @@ | ||
| 118 | /** |
|
| 119 | * @expectedException \RuntimeException |
|
| 120 | */ |
|
| 121 | public function testImmutableMagicAccess() { |
|
| 122 | $vars = array( |
|
| 123 | 'get' => array('name' => 'John Q. Public', 'nickname' => 'Joey'), |
|
| 124 | 'method' => 'GET' |
|
| 125 | ); |
|
| 126 | ||
| 127 | $request = new Request( |
|
| 128 | $vars, |
|
| 129 | $this->secureRandom, |
|
| 130 | $this->config, |
|
| 131 | $this->stream |
|
| 132 | ); |
|
| 133 | ||
| 134 | $request->{'nickname'} = 'Janey'; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @expectedException \LogicException |
|