1 | <?php |
||
12 | final class ImmutableArrayObjectTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * Verify basic behavior of createFromMutable(). |
||
16 | * |
||
17 | * @test |
||
18 | * @covers ::createFromMutable |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | public function createFromMutable() |
||
33 | |||
34 | /** |
||
35 | * Verify behavior of offsetSet(). |
||
36 | * |
||
37 | * @test |
||
38 | * @covers ::offsetSet |
||
39 | * @expectedException \LogicException |
||
40 | * @expectedExceptionMessage Attempting to write to an immutable array |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function offsetSet() |
||
49 | |||
50 | /** |
||
51 | * Verify behavior of offsetUnset(). |
||
52 | * |
||
53 | * @test |
||
54 | * @covers ::offsetUnset |
||
55 | * @expectedException \LogicException |
||
56 | * @expectedExceptionMessage Attempting to write to an immutable array |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | public function offsetUnset() |
||
65 | |||
66 | /** |
||
67 | * Verify behavior of append(). |
||
68 | * |
||
69 | * @test |
||
70 | * @covers ::append |
||
71 | * @expectedException \LogicException |
||
72 | * @expectedExceptionMessage Attempting to write to an immutable array |
||
73 | * |
||
74 | * @return void |
||
75 | */ |
||
76 | public function append() |
||
81 | |||
82 | /** |
||
83 | * Verify behavior of exchangeArray(). |
||
84 | * |
||
85 | * @test |
||
86 | * @covers ::exchangeArray |
||
87 | * @expectedException \LogicException |
||
88 | * @expectedExceptionMessage Attempting to write to an immutable array |
||
89 | * |
||
90 | * @return void |
||
91 | */ |
||
92 | public function exchangeArray() |
||
97 | } |
||
98 |