| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class EventGeneratorMethodsSpec extends ObjectBehavior |
||
| 23 | { |
||
| 24 | |||
| 25 | function let(Event $event) |
||
|
|
|||
| 26 | { |
||
| 27 | $this->beAnInstanceOf(TestGenerator::class); |
||
| 28 | $this->beConstructedWith($event); |
||
| 29 | } |
||
| 30 | |||
| 31 | function it_is_initializable() |
||
| 32 | { |
||
| 33 | $this->shouldHaveType(TestGenerator::class); |
||
| 34 | $this->shouldBeAnInstanceOf(EventGenerator::class); |
||
| 35 | } |
||
| 36 | |||
| 37 | function it_holds_a_list_of_events(Event $event) |
||
| 40 | } |
||
| 41 | |||
| 42 | function it_clears_all_recorded_events_eacht_time_release_is_called(Event $event) |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 57 | } |
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.