| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | function it_can_generates_random_values(Dictionary $dictionary) |
||
| 32 | { |
||
| 33 | $dictionary->getName()->willReturn('the_dico'); |
||
| 34 | $dictionary->getKeys()->willReturn(['foo', 'bar', 'baz']); |
||
| 35 | |||
| 36 | $this->dictionaries->add($dictionary->getWrappedObject()); |
||
| 37 | |||
| 38 | $this->dictionary('the_dico')->shouldBeOneOf('foo', 'bar', 'baz'); |
||
| 39 | } |
||
| 51 |
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.