コード例 #1
0
ファイル: RegisterTest.php プロジェクト: olivier1980/alpharpc
 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);
 }