| @@ 92-99 (lines=8) @@ | ||
| 89 | $this->assertFalse($cont->has('foo')); |
|
| 90 | } |
|
| 91 | ||
| 92 | public function testRemove() |
|
| 93 | { |
|
| 94 | $cont = new Container(['foo' => 'a', 'bar' => 'b', 'baz' => 'c']); |
|
| 95 | $result = $cont->remove('bar'); |
|
| 96 | ||
| 97 | $this->assertEquals(['foo' => 'a', 'baz' => 'c'], $cont->getAll()); |
|
| 98 | $this->assertSame($cont, $result); |
|
| 99 | } |
|
| 100 | ||
| 101 | public function testRemoveMissing() |
|
| 102 | { |
|
| @@ 101-108 (lines=8) @@ | ||
| 98 | $this->assertSame($cont, $result); |
|
| 99 | } |
|
| 100 | ||
| 101 | public function testRemoveMissing() |
|
| 102 | { |
|
| 103 | $cont = new Container(['foo' => 'a', 'bar' => 'b']); |
|
| 104 | $result = $cont->remove('baz'); |
|
| 105 | ||
| 106 | $this->assertEquals(['foo' => 'a', 'bar' => 'b'], $cont->getAll()); |
|
| 107 | $this->assertSame($cont, $result); |
|
| 108 | } |
|
| 109 | ||
| 110 | public function testSet() |
|
| 111 | { |
|