| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | function it_is_hydrated_just_once() |
||
| 48 | { |
||
| 49 | Assert::false($this->executed); |
||
| 50 | |||
| 51 | $this->shouldYieldLike([ |
||
| 52 | 'foo' => 0, |
||
| 53 | 'bar' => 1, |
||
| 54 | 'baz' => 2, |
||
| 55 | ]); |
||
| 56 | |||
| 57 | Assert::true($this->executed); |
||
| 58 | |||
| 59 | $this->shouldYieldLike([ |
||
| 60 | 'foo' => 0, |
||
| 61 | 'bar' => 1, |
||
| 62 | 'baz' => 2, |
||
| 63 | ]); |
||
| 64 | |||
| 65 | Assert::true($this->executed); |
||
| 66 | } |
||
| 99 |
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.