|
@@ 54-62 (lines=9) @@
|
| 51 |
|
$this->reporter = new Reporter(); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
public function expectEvents(array $expectedEvents) |
| 55 |
|
{ |
| 56 |
|
if (count($this->publishedEvents) !== count($this->storedEvents)) { |
| 57 |
|
$this->reporter->reportDifferenceInStoredVsPublished($this->storedEvents, |
| 58 |
|
$this->publishedEvents, $this->actualException); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
return $this->expectPublishedEvents($expectedEvents); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function expectEventsMatching(Matcher $matcher) |
| 65 |
|
{ |
|
@@ 64-72 (lines=9) @@
|
| 61 |
|
return $this->expectPublishedEvents($expectedEvents); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function expectEventsMatching(Matcher $matcher) |
| 65 |
|
{ |
| 66 |
|
if (count($this->publishedEvents) !== count($this->storedEvents)) { |
| 67 |
|
$this->reporter->reportDifferenceInStoredVsPublished($this->storedEvents, |
| 68 |
|
$this->publishedEvents, $this->actualException); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
return $this->expectPublishedEventsMatching($matcher); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
public function expectException(Matcher $matcher) |
| 75 |
|
{ |