@@ 105-114 (lines=10) @@ | ||
102 | $this->assertInstanceOf(ImmutableContainer::class, $result); |
|
103 | } |
|
104 | ||
105 | public function testRemoveMissing() |
|
106 | { |
|
107 | $cont = new ImmutableContainer(['foo' => 'a', 'bar' => 'b']); |
|
108 | $result = $cont->remove('baz'); |
|
109 | ||
110 | $this->assertEquals(['foo' => 'a', 'bar' => 'b'], $cont->getAll()); |
|
111 | $this->assertEquals(['foo' => 'a', 'bar' => 'b'], $result->getAll()); |
|
112 | $this->assertSame($cont, $result); |
|
113 | $this->assertInstanceOf(ImmutableContainer::class, $result); |
|
114 | } |
|
115 | ||
116 | public function testSet() |
|
117 | { |
@@ 105-114 (lines=10) @@ | ||
102 | $this->assertInstanceOf(ImmutableFlatContainer::class, $result); |
|
103 | } |
|
104 | ||
105 | public function testRemoveMissing() |
|
106 | { |
|
107 | $cont = new ImmutableFlatContainer(['foo' => 'a', 'bar' => 'b']); |
|
108 | $result = $cont->remove('baz'); |
|
109 | ||
110 | $this->assertEquals(['foo' => 'a', 'bar' => 'b'], $cont->getAll()); |
|
111 | $this->assertEquals(['foo' => 'a', 'bar' => 'b'], $result->getAll()); |
|
112 | $this->assertSame($cont, $result); |
|
113 | $this->assertInstanceOf(ImmutableFlatContainer::class, $result); |
|
114 | } |
|
115 | ||
116 | public function testSet() |
|
117 | { |