1 | <?php namespace League\Fractal\Test; |
||
5 | class ParamBagTest extends \PHPUnit_Framework_TestCase |
||
6 | { |
||
7 | public function testOldFashionedGet() |
||
14 | |||
15 | public function testGettingValuesTheOldFashionedWayArray() |
||
21 | |||
22 | public function testArrayAccess() |
||
33 | |||
34 | /** |
||
35 | * @expectedException LogicException |
||
36 | * @expectedExceptionMessage Modifying parameters is not permitted |
||
37 | */ |
||
38 | public function testArrayAccessSetFails() |
||
44 | |||
45 | /** |
||
46 | * @expectedException LogicException |
||
47 | * @expectedExceptionMessage Modifying parameters is not permitted |
||
48 | */ |
||
49 | public function testArrayAccessUnsetFails() |
||
55 | |||
56 | public function testObjectAccess() |
||
65 | |||
66 | /** |
||
67 | * @expectedException LogicException |
||
68 | * @expectedExceptionMessage Modifying parameters is not permitted |
||
69 | */ |
||
70 | public function testObjectAccessSetFails() |
||
76 | |||
77 | /** |
||
78 | * @expectedException LogicException |
||
79 | * @expectedExceptionMessage Modifying parameters is not permitted |
||
80 | */ |
||
81 | public function testObjectAccessUnsetFails() |
||
87 | } |
||
88 |