| @@ 110-117 (lines=8) @@ | ||
| 107 | return $this; |
|
| 108 | } |
|
| 109 | ||
| 110 | public function expectPublishedEventsMatching(Matcher $matcher) |
|
| 111 | { |
|
| 112 | if (!$matcher->matches($this->publishedEvents)) { |
|
| 113 | $this->reporter->reportWrongEventDescription($this->publishedEvents, |
|
| 114 | $this->descriptionOf($matcher), $this->actualException); |
|
| 115 | } |
|
| 116 | return $this; |
|
| 117 | } |
|
| 118 | ||
| 119 | private function descriptionOf(Matcher $matcher) |
|
| 120 | { |
|
| @@ 165-172 (lines=8) @@ | ||
| 162 | return $this; |
|
| 163 | } |
|
| 164 | ||
| 165 | public function expectStoredEventsMatching(Matcher $matcher) |
|
| 166 | { |
|
| 167 | if (!$matcher->matches($this->storedEvents)) { |
|
| 168 | $this->reporter->reportWrongEventDescription($this->storedEvents, |
|
| 169 | $this->descriptionOf($matcher), $this->actualException); |
|
| 170 | } |
|
| 171 | return $this; |
|
| 172 | } |
|
| 173 | ||
| 174 | public function expectVoidReturnType() |
|
| 175 | { |
|