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