private function createEqualToMatchers(array $expected) { $matchers = array(); foreach ($expected as $event) { $matchers[] = Matchers::equalTo($event); } return $matchers; }
public function setUp() { $this->expectedEvent = new MyEvent($this->aggregateId, array("a" => "b")); $this->testSubject = Matchers::equalTo($this->expectedEvent); }