| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Unit\Chekote\NounStore\Store; |
||
| 36 | public function testSetTwiceForSameKeyStoresMultipleValues() |
||
| 37 | { |
||
| 38 | $key = 'My Key'; |
||
| 39 | $value1 = 'My Value'; |
||
| 40 | $value2 = 'My Second Value'; |
||
| 41 | |||
| 42 | $this->store->set($key, $value1); |
||
| 43 | $this->store->set($key, $value2); |
||
| 44 | |||
| 45 | $store = Phake::makeVisible($this->store); |
||
| 46 | /* @noinspection PhpUndefinedFieldInspection */ |
||
| 47 | { |
||
| 48 | $this->assertCount(2, $store->nouns[$key]); |
||
| 49 | $this->assertEquals($value1, $store->nouns[$key][0]); |
||
| 50 | $this->assertEquals($value2, $store->nouns[$key][1]); |
||
| 51 | } |
||
| 54 |