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