| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class KeyValueBagTest extends TestCase |
||
| 19 | { |
||
| 20 | private function getSubjectUnderTest(): KeyValueBag |
||
| 21 | { |
||
| 22 | return new KeyValueBag(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testGetSetHasEntries() |
||
| 26 | { |
||
| 27 | $sut = $this->getSubjectUnderTest(); |
||
| 28 | |||
| 29 | $this->assertFalse($sut->hasEntries()); |
||
| 30 | |||
| 31 | $sut->set('foo', [1]); |
||
| 32 | |||
| 33 | $this->assertEquals([1], $sut->get('foo')); |
||
| 34 | $this->assertTrue($sut->hasEntries()); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function testReset() |
||
| 48 | } |
||
| 49 | } |
||
| 50 |