| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Chekote\NounStore\Store; |
||
| 20 | public function testSetOnceStoresValue() |
||
| 21 | { |
||
| 22 | $key = 'My Key'; |
||
| 23 | $value = 'My Value'; |
||
| 24 | |||
| 25 | $class = new ReflectionClass(Store::class); |
||
| 26 | $nouns = $class->getProperty('nouns'); |
||
| 27 | $nouns->setAccessible(true); |
||
| 28 | |||
| 29 | $this->store->set($key, $value); |
||
| 30 | |||
| 31 | $this->assertCount(1, $nouns->getValue($this->store)[$key]); |
||
| 32 | $this->assertEquals($value, $nouns->getValue($this->store)[$key][0]); |
||
| 33 | } |
||
| 56 |