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