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