示例#1
0
 public function testGetHistory()
 {
     $subject = $this->getMock('\\stdClass');
     $payload = new Payload('id', $subject);
     $payload->setState('firstState');
     $payload->setState('secondState');
     $payload->setState('thirdState');
     $this->assertEquals(['firstState', 'secondState', 'thirdState'], $payload->getHistory());
 }