public function testRoundtrip() { $pm = new ProtocolMessage(); $pm->setActions(array('service1', 'service2')); $pm2 = ProtocolMessage::fromMessage($pm->toMessage()); $this->assertEquals($pm, $pm2); }
public function testTheMessageIsSerializableToItself() { $pm = new ProtocolMessage(); $pm->setActions(array('service1', 'service2')); $pm2 = ProtocolMessage::fromMessage($pm->toMessage()); $this->assertEquals($pm, $pm2); }