| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | function it_can_generates_unique_random_values(Dictionary $dictionary) |
||
| 39 | { |
||
| 40 | $dictionary->getName()->willReturn('the_dico'); |
||
| 41 | $dictionary->getKeys()->willReturn(['foo', 'bar', 'baz']); |
||
| 42 | |||
| 43 | $this->dictionaries->add($dictionary->getWrappedObject()); |
||
| 44 | |||
| 45 | $this->unique()->dictionary('the_dico')->shouldBeOneOf('foo', 'bar', 'baz'); |
||
| 46 | } |
||
| 48 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.